Skip to content

UTF-8 Encoder

See the exact UTF-8 bytes behind any text.

Character Code point UTF-8 bytes Bytes

Quick Tool Overview

The UTF-8 Encoder shows the exact bytes behind your text, character by character, with the code point each produces. It makes visible the gap between a string's length in characters and in bytes, which is where most encoding bugs actually live.

What it does
Shows the UTF-8 bytes behind each character
You give it
A value, name or string you are debugging
You get back
The bytes in hex, decimal or percent form
Best for
Debugging encoding problems and column sizing
Text Tools Free, unlimited use No sign-up Runs in your browser

About the UTF-8 Encoder

UTF-8 is how virtually all text is stored and transmitted, and its defining property is that it is variable width. A plain ASCII character takes one byte, an accented letter two, most CJK characters three and an emoji four. Almost every encoding bug traces back to something assuming otherwise.

This shows the exact bytes. Each character is listed with its code point and the bytes it produces, in hexadecimal, decimal or percent-encoded form, so you can see precisely where the length of a string in characters and its length in bytes diverge. That divergence is the reason a name fits a form but fails a database insert, and seeing it laid out is usually enough to explain the whole bug.

Key features of the UTF-8 Encoder

Per-character breakdown

Each character with its code point and the bytes it produces, so the variable width is visible.

Three byte formats

Hexadecimal for hex editors, decimal for arithmetic, percent-encoded for URLs.

Character versus byte length

Both figures side by side, which is exactly the gap that breaks a database insert.

Byte order mark detected

The EF BB BF prefix that breaks CSV imports and shell scripts is flagged if present.

Explains the widths

Why an accent is two bytes and an emoji four, rather than presenting the numbers without context.

How to use the UTF-8 Encoder

  1. 1

    Paste your text

    A value, a name or any string you are debugging.

  2. 2

    Choose the byte format

    Hexadecimal, decimal or percent-encoded, depending on what you are comparing against.

  3. 3

    Read the per-character table

    Each character with its code point and the bytes it produces.

  4. 4

    Compare the two lengths

    Characters versus bytes, which is where most encoding bugs live.

Frequently asked questions

One for ASCII, two for Latin accents, Greek, Cyrillic, Hebrew and Arabic, three for most CJK characters and the general symbol ranges, and four for emoji and rarer scripts.

Reviews of the UTF-8 Encoder

What people who use the UTF-8 Encoder think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the UTF-8 Encoder. It takes half a minute and no account.

Write the first review

More text tools