String Byte Size Calculator
Measure text in UTF-8, UTF-16 and UTF-32 bytes, code points and grapheme clusters.
The size of a string depends on the encoding. This tool reports UTF-8, UTF-16 and UTF-32 byte counts alongside JavaScript's string length, the Unicode code point count and the number of grapheme clusters — the last being what a person actually calls a character.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why is my emoji counted as two characters?
Which number does my database column limit use?
How to use the string byte size calculator
- 1Enter or paste your text.
- 2The result appears immediately — copy or download it.
Embed this tool
Put the working string byte size calculator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Unicode ConverterConvert text between code points, UTF-8, UTF-16, HTML entities and escape sequences.UTF-8 Byte InspectorSee exactly how text is encoded — code points, UTF-8 bytes, names and byte counts per character.Hex to Text ConverterConvert text to hexadecimal bytes and decode hex strings back into readable text.Unicode Escape ConverterConvert characters to \u escape sequences and back — for JSON, JavaScript and source code.Edge Case Test String GeneratorGenerate the strings that break input handling — Unicode, RTL, emoji, injection patterns and boundary lengths.Fancy Text GeneratorConvert text into bold, italic, script, monospace and double-struck Unicode styles.
Last updated
More text tools