Skip to main content
Back to Tools
Web Tools

Byte Counter

Count bytes in different text encodings: UTF-8, UTF-16 BE/LE, ASCII, and Latin-1. Shows character count, Unicode code points, line count, and formatted sizes. Runs entirely in your browser — your data never leaves your machine.

bytes encoding utf-8 utf-16 ascii size unicode

Published May 30, 2026

All interactive tools run entirely in your browser. Your data never leaves your device.

How It Works

Type or paste text and instantly see its byte size in 5 encodings. The tool counts JavaScript characters (UTF-16 code units), Unicode code points (handling surrogate pairs), and bytes per encoding. Sizes are shown in bytes with KB/MB display for larger values.

Features

  • 5 encodings: UTF-8, UTF-16 BE, UTF-16 LE, ASCII, Latin-1 (ISO 8859-1)
  • Character info: character count, code point count, line count
  • Surrogate pair aware: correctly counts emoji and supplementary plane characters
  • Formatted sizes: auto-converts to KB/MB for larger values
  • Copy summary: one-click copy of all byte counts
  • 5 examples: ASCII text, Unicode emoji, CJK characters, mixed script, code snippet
  • Private: runs entirely in the browser — no data transmitted

Use Cases

  • Checking string sizes for database field limits
  • Estimating payload sizes for API requests
  • Understanding encoding differences for internationalized text
  • Verifying byte counts for SMS or tweet-length calculations