UTF-8 Text Byte Counter โ Free Online Tool
Count exact UTF-8 bytes, Unicode code points, visible graphemes, UTF-16 units, words, and lines.
Count Exact UTF-8 Bytes in Text
Paste or type text to measure the bytes produced by standard UTF-8 encoding. ASCII normally uses one byte per code point, while accented letters, many scripts, symbols, and emoji can use two to four bytes.
Compare Characters, Code Points, and UTF-16 Units
See visible grapheme clusters, Unicode code points, and JavaScript UTF-16 code units separately. These totals can differ for emoji, combining marks, skin-tone modifiers, flags, and zero-width-joiner sequences.
Check API and Database Byte Limits
Set a limit in bytes, KiB, or MiB to see how much capacity remains or how far the text exceeds the limit. Use the byte metric named by the receiving API, database, form, or protocol rather than assuming a character limit is equivalent.
Measure LF and CRLF Line Endings
Keep the pasted line endings or normalize them to LF or CRLF before counting. A CRLF line break occupies two UTF-8 bytes, while LF occupies one, so multiline files can produce different totals across platforms.
Private Local Text Measurement
UTF-8 encoding, Unicode analysis, line-ending normalization, limit checks, and local text-file reading run in your browser. Text, filenames, and limit values are not uploaded or included in optional analytics.
Frequently Asked Questions
Everything you need to know about the UTF-8 Text Byte Counter.
How do I count UTF-8 bytes in a string?
Encode the complete string as UTF-8 and count the resulting bytes. This tool uses the browser TextEncoder for that exact measurement.
Why are byte count and character count different?
UTF-8 uses one byte for ASCII but multiple bytes for many international characters and emoji. Some visible characters also contain multiple Unicode code points.
What is the difference between a grapheme and a code point?
A code point is one Unicode value. A grapheme is what a person usually perceives as one character and can combine several code points, such as an emoji sequence or a letter plus accent.
Do CRLF line endings use more bytes than LF?
Yes. In UTF-8, LF is one byte and CRLF is two bytes. The line-ending option lets you compare or normalize the text before counting.
Does this measure a DOCX or PDF file size?
No. It measures encoded plain text. Document containers, markup, fonts, images, metadata, compression, and protocol overhead add other bytes.
Is my text uploaded?
No. Text analysis and supported local file reading happen entirely in your browser.