Estimate byte size of your text in various formats.
📏 Estimates storage size in different units. Useful before storing text in databases or APIs.
The Text Size Estimator is based on the following formula:
size ≈ Σ bytes per character UTF-8: ASCII 1 byte, Latin/Greek/Cyrillic/Arabic 2 bytes, CJK 3 bytes, emoji 4 bytes Base64 size ≈ 4 × ⌈bytes ÷ 3⌉
Variables: size: UTF-8 storage size of the text (bytes) ASCII: characters U+0000-007F, 1 byte each Latin/Greek/Cyrillic/Arabic: accented and non-Latin letters, 2 bytes each CJK: Chinese, Japanese, Korean characters, 3 bytes each emoji: 4 bytes each Base64: encoded size ≈ 4 × ⌈bytes ÷ 3⌉ characters
UTF-8 is variable-width: common characters cost fewer bytes, so storage size depends on the script mix, not the character count. Base64 packs every 3 bytes into 4 characters, which is why encoded text is always about a third larger than the raw bytes.
Worked example: Step 1: The text héllo has 5 characters. Step 2: h, l, l, o are ASCII at 1 byte each; é is Latin at 2 bytes. Step 3: size = 1 + 2 + 1 + 1 + 1 = 6 bytes. Step 4: Base64 ≈ 4 × ⌈6 ÷ 3⌉ = 8 characters. Result: 6 bytes in UTF-8, about 8 characters in Base64.
This tool estimates the storage size of your text in different formats — bytes (UTF-8), kilobytes, Base64, and character/word/line counts. Useful for planning database fields and API limits.
Characters take different byte counts in UTF-8: ASCII letters = 1 byte, accented Latin = 2 bytes, Chinese/CJK = 3 bytes, emoji = 4 bytes. A 1000-character Chinese text is ~3000 bytes, not 1000.
More tools you might find useful
Convert text characters to binary representation.
Cargo/pyproject-style TOML parsed to clean JSON locally.
Play sine, square, triangle, and sawtooth tones from 20 Hz to 20 kHz.
Find any symbol by name or paste — code point and block shown.