Skip to content
OneKitly

Byte counter (UTF-8)

Count the characters, UTF-8 bytes, words and lines in your text. Takes a whole file, so a long log does not have to go through the clipboard.

Advertisement

Byte counter (UTF-8) works straight from this page — free, instant, nothing to install. It sits under Encoding & decoding in our catalogue, alongside Base64 Encoder / Decoder and Hex to text converter.

How to use it

  1. Open the tool — no signup or install needed.
  2. Enter your input or adjust the available options.
  3. Get your result instantly, then copy or download it.
Advertisement

Frequently asked questions

What does Byte counter (UTF-8) do?

Count the characters, UTF-8 bytes, words and lines in your text. Takes a whole file, so a long log does not have to go through the clipboard.

When would I actually use this?

Reading a payload someone sent you, embedding a small file in a config, and finding out why a query string breaks once it reaches the server.

What is the most common mistake?

Treating Base64 as a form of protection. It is an encoding, not encryption — anyone can decode it instantly, and a token pasted into a public issue is a leaked token.

What else is filed next to it?

Base64 Encoder / Decoder, Hex to text converter and HTML Entity Encoder / Decoder share its section. They are not variants of it — being filed together is not the same as being alike — but that is where to look if this turned out not to be the tool you wanted.

Where do the figures come from?

The encodings follow their RFCs, so a round trip is lossless. URL encoding has two variants — one that encodes a space as %20 and one as a plus sign — and the tool says which it applies.

Further reading

All guides →
ExplainerCounting Characters Against a Limit Someone Else SetOne emoji is 1 character, or 7, or 11, or 25, depending on who is counting. Which one your form, your database and your SMS gateway mean — and a one-paste test that tells you which you are facing.GuideCharacter Limits That Actually Bite: Code Units, Code Points and GraphemesA character is three different things at once. One emoji with a skin tone is 1 grapheme, 2 code points and 4 UTF-16 units. Every count in this guide was measured in Node, plus why an SMS drops from 160 to 70 and why VARCHAR(255) is not 255 of anything in particular.ExplainerEncoding the Same Text Twice Turns an Ampersand Into &The first pass turns & into &. The second turns that & into & again, and the page displays the escape instead of the character.ExplainerEscaping a String for JSON: Three Characters Are Mandatory, and One Is a TrapRFC 8259 requires exactly three things to be escaped inside a JSON string. Everything else is optional. The one that actually breaks pipelines is a lone surrogate — legal in JSON text, impossible in UTF-8, and silently replaced the moment your data is written out.ExplainerWhat Is a JWT (JSON Web Token)?A JWT is a compact, signed token used to carry identity between services. Here's its three parts, how it's used for auth, and its security limits.ExplainerOne Emoji Is One Character, Two Units, Four Bytes and TwelveDepending on which layer is counting, 😀 has length 1, 2, 4 or 12. A field limit that does not say which one is a bug waiting for a French accent.
Advertisement