Text to Hex Converter

Convert text to hexadecimal UTF-8 bytes. Choose space-separated or uppercase output.

Hex → Text

01

Text → Hex

Convert text to hexadecimal UTF-8 bytes. Choose space-separated or uppercase output.

02

ASCII / UTF-8

Text is encoded as UTF-8. Each byte becomes two hex digits; ASCII characters use one byte.

03

Local processing

Your text is processed in your browser.

Text to Hex Converter

Text → Hex:

Text is encoded as UTF-8. Each byte becomes two hex digits; ASCII characters use one byte.

Example:

'A' → 41 'Hello' → 48 65 6C 6C 6F '255' → 32 35 35

Common uses:

  • >Read hex dumps
  • >Inspect text bytes
  • >Decode API and log data

Questions & answers

Are numbers converted between bases?

This tool encodes text as bytes. For example, the text 255 becomes 32 35 35.

Is my input uploaded?

No. Processing stays in your browser.

Other Languages

Text to Hex Converter — Base64.sh

Text to Hex Converter | ASCII / UTF-8

Convert text to hexadecimal UTF-8 bytes. Choose space-separated or uppercase output.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Compare the radix representation of each UTF-8 byte and decoded text, including non-ASCII input.
Comparison reference
Byte and radix strings produced by Node.js Buffer; Hex-to-text also checks malformed UTF-8.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.