Skip to content

ASCII & UTF-8 Converter

Characters and bytes are not the same count.

Characters and bytes are not the same count. Character codes in decimal, hex, octal and binary, with the UTF-8 byte count alongside the character count.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

Up to 200 characters.

Decimal codes

72 101 108 108 111

5 characters · 5 UTF-8 bytes · all ASCII

Characters5
UTF-8 bytes5
All ASCIIYes
Decimal72 101 108 108 111
Hexadecimal48 65 6C 6C 6F
Binary01001000 01100101 01101100 01101100 01101111
"H"dec 72 · hex 0x48 · bin 01001000
"e"dec 101 · hex 0x65 · bin 01100101
"l"dec 108 · hex 0x6C · bin 01101100
"l"dec 108 · hex 0x6C · bin 01101100
"o"dec 111 · hex 0x6F · bin 01101111

Character count and byte count are the same only for pure ASCII. An emoji is one character and four UTF-8 bytes; an accented Latin letter is one character and two, which is why a database column limited to 255 bytes does not hold 255 characters. ASCII covers 0 to 127 and UTF-8 was designed to extend it without breaking it: every ASCII byte means the same thing in UTF-8, which is why the encoding took over. Bytes above 127 signal a multi-byte sequence. The gap between character length and byte length causes real bugs — truncating a string at a byte boundary can split a multi-byte character in half and produce invalid text, which is why length limits should be counted in whatever unit the storage actually uses.

How the ASCII & UTF-8 Converter works

Character codes in decimal, hex, octal and binary, with the UTF-8 byte count alongside the character count. The two differ the moment anything outside ASCII appears.

Also known as: text to binary converter · character to ascii code · how many bytes is an emoji · utf 8 byte counter

Where to go next

The ASCII & UTF-8 Converter question rarely arrives on its own. These are the ones that usually come with it:

Frequently asked questions

What is ASCII?

A 7-bit encoding covering 0 to 127 — the English alphabet, digits, punctuation and control codes. Everything else needs a wider encoding.

Why are bytes and characters different?

UTF-8 uses one byte for ASCII, two or three for most other scripts, and four for emoji. One emoji is one character and four bytes, which is why a 255-byte column does not hold 255 characters.

Why did UTF-8 win?

Because it extends ASCII without breaking it. Every ASCII byte means the same thing in UTF-8, so existing text and existing software kept working — which no other Unicode encoding managed.

What happens if I truncate at a byte boundary?

You can split a multi-byte character in half and produce invalid text, usually shown as a replacement character. Length limits should count in whatever unit the storage actually uses.

What are the codes below 32?

Control characters — newline is 10, carriage return 13, tab 9, null 0. They date from teleprinters and several are still load-bearing in modern protocols.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/ascii-converter-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="ASCII & UTF-8 Converter"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/ascii-converter-calculator" style="color:#64748b">ASCII & UTF-8 Converter</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators