SafeToolkits

ASCII to Hex

Encode text as hexadecimal bytes.

Runs in your browser: what you paste is never uploaded

UTF-8 bytes

How to use ASCII to Hex

  1. 1Paste or type your inputUse the box above, or click Sample to try it with an example.
  2. 2Choose your optionsChoose the separator (spaces, none, colons or commas), an optional 0x or \x prefix, and uppercase letters.
  3. 3Copy the resultCopy it with one click. Nothing is sent anywhere.

About ASCII to Hex

Encode text as hexadecimal bytes (UTF-8), for debugging, protocols and escaping.

Frequently asked questions

Why does one character give several bytes?

Text is encoded as UTF-8, where characters outside basic ASCII, like é or emoji, take two to four bytes.

Can I convert back?

Yes. Use Hex to ASCII, or the swap button.

Is what I paste sent anywhere?

No. The tool runs entirely in your browser and never sends what you type or paste to a server.

Is it free?

Yes. It's free, with no sign-up and no limits.

Related tools