Text to Hex Converter

Convert text to its hexadecimal byte values, and hex back to text.

Text as raw bytes

Under the hood, text is stored as bytes, and hexadecimal is the compact, readable way to look at those bytes. This converts text into its hex representation and hex back into text, which is what you need when working close to the data — inspecting an encoding, debugging a protocol, or reading a hex dump.

Paste text to see its hex, or hex to recover the text.

Encoding matters at the byte level

One thing to keep in mind is that the bytes depend on the character encoding. Basic English letters are a single byte each in the common UTF-8 encoding, but accented characters, emoji and non-Latin scripts take several bytes, so their hex is longer than you might expect. That is why the same character can produce different bytes under different encodings. For plain ASCII text the mapping is simple and one-to-one; for anything beyond it, the encoding is part of the story.

Common questions

Can it convert both ways?

Yes — text to hexadecimal bytes, and hex back into readable text.

Why is one character sometimes several hex bytes?

Beyond basic English letters, characters like emoji and accented letters take multiple bytes in UTF-8, so their hex is longer.

Is my text uploaded?

No. The conversion happens in your browser.

More Developer tools