Docelora
ToolsAboutContact
Developer tools

UTF-8 Encoder/Decoder

See exactly which bytes your text becomes in UTF-8 – useful for debugging encoding errors, byte limits, file formats and network protocols – or turn a list of bytes back into text.

Quick answer: choose Encode or Decode and the number format. When encoding, a table shows each character with its code point and UTF-8 bytes; when decoding, the bytes are checked for valid UTF-8.

UTF-8 Encoder/Decoder

Hex · decimal · octal · binary · validity check

Private: runs entirely in your browser. Nothing you type or paste is uploaded or stored.

How UTF-8 uses bytes

Code pointsBytesExample
U+0000–U+007F1A → 41
U+0080–U+07FF2é → C3 A9
U+0800–U+FFFF3€ → E2 82 AC
U+10000–U+10FFFF4😀 → F0 9F 98 80

Related tools

Frequently asked questions

What is UTF-8?

The most common way of storing Unicode text as bytes. ASCII characters use one byte; other characters use two, three or four.

How many bytes is an emoji?

Most emoji are four bytes in UTF-8; some, such as flags and family emoji, are several code points and take more.

Why is my text longer in bytes than characters?

Any character outside basic ASCII takes more than one byte. A database column or message limit counted in bytes fills up faster.

How do I decode hex bytes?

Choose Decode and Hexadecimal, then paste the bytes with or without spaces, or as \x escapes.

What does “invalid UTF-8” mean?

The bytes do not follow UTF-8 rules – for example, text saved as Windows-1252 or a sequence that was cut off. Invalid parts are shown as �.

What is mojibake?

Garbled text such as “é” instead of “é”, caused by reading UTF-8 bytes as another encoding. Checking the bytes here shows what was really stored.

Does it handle a byte order mark?

Yes – EF BB BF at the start is decoded as an invisible U+FEFF character.

Can I paste bytes with commas?

Yes – spaces, commas and semicolons are all accepted as separators.

What is the difference between UTF-8 and Unicode?

Unicode assigns a number (code point) to each character; UTF-8 is one way of writing those numbers as bytes.

Is UTF-16 supported?

This tool works with UTF-8. The Unicode Escape Converter shows UTF-16 surrogate pairs in JSON format.

Can I see the code points?

Yes – the encode table lists the code point of every character.

What is the largest input?

Up to 200,000 characters.

Is it free?

Yes – no sign-up, no usage limits and no adverts inside the tool.

Do I need to install anything?

No. It runs in any modern browser on a phone, tablet or computer.

Is my text uploaded?

No. Everything is processed by JavaScript in this browser tab; nothing you enter is sent to Docelora.

Does it work on a phone?

Yes – the layout adapts to small screens and the buttons are sized for touch.

Can I copy the result?

Yes – use the Copy button under the result box, or select the text.

Does it work offline?

Once the page has loaded, the tool keeps working without a connection.

Which browsers are supported?

Current versions of Chrome, Edge, Firefox, Safari and Samsung Internet.

Is there a size limit?

Very large inputs are limited to keep your browser responsive; the limit is shown if you reach it.

Last reviewed: 14 November 2026.