EditSafely

Analyze UTF8

Analyze input UTF8 data and print byte sequence statistics.

Runs on your device, nothing uploaded

Try:

0 chars · 0 lines

Output

Analyze input UTF8 data and print byte sequence statistics.

Type or paste above to see the result here.

Example: Byte-sequence breakdown

What you paste never leaves this tab

Analyze UTF8 is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Analyze UTF8

  1. 1. Paste your text. Paste a paragraph or a whole column of data, such as A€😀 hello. The UTF-8 size appears as the headline.
  2. 2. Read the tiles and the share line. Tiles give bytes, characters you see, code points, average bytes per character and the ASCII share; tap one to copy it. The line under the headline shows how many 1, 2, 3 and 4 byte characters there are and their share of the bytes.
  3. 3. Check the heaviest characters. The table lists the non-ASCII characters that cost the most bytes, with their code point, bytes each, count and total. Invisible characters, a BOM or control characters are flagged above the result, with Debug UTF8 one tap away.

When to use Analyze UTF8

Analyze UTF8 is for the moment a string behaves differently than its character count suggests. Emoji, accented letters and CJK text all take more than one byte per character in UTF8, and this tool shows exactly how many bytes each character costs. Use it whenever a length limit, storage estimate or protocol spec talks about bytes rather than characters.

  • Debugging a database column truncation. A VARCHAR(50) column silently cuts off a name with an accented letter because the database counts bytes, not characters. Running the string through this tool shows which characters cost 2 or 3 bytes and pushed it over the limit.
  • Sizing a payload before a network limit. An SMS gateway or a Twitter-style API caps messages by byte count. Pasting your draft message here tells you the real byte total so you know if it fits before you send it.
  • Explaining an emoji-heavy string in a bug report. A user pasted a message with several emoji and the app rejected it as too long. Feeding the same string in here shows that each emoji costs 4 bytes, which explains the mismatch to your teammates.
  • Auditing a mixed-script log line. A log line mixes ASCII field names with Cyrillic or Japanese values. The 1-byte versus multi-byte sequence counts make it obvious how much of the line is non-ASCII at a glance.

Examples

Byte-sequence breakdown

Input

A€😀

Output

Total code points: 3
Total bytes: 8
1-byte sequences: 1
2-byte sequences: 0
3-byte sequences: 1
4-byte sequences: 1
ASCII code points: 1
Non-ASCII code points: 2

About the Analyze UTF8 tool

Analyze UTF8 is a free online tool that works entirely inside your web browser. Analyze input UTF8 data and print byte sequence statistics. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 69 UTF-8 utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Is Analyze UTF8 free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All UTF-8 Tools →