Text ⇄ Hex

Convert text to hexadecimal bytes and back.

Also called: text to hex, hex to text, hex to string.

FreeNo sign-upRuns in your browser
DEVELOPER

Text ⇄ Hex

Convert text to hexadecimal bytes and back.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Text ⇄ Hex (13 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Text ⇄ Hex

Convert text to hexadecimal bytes (A = 41) and back, with or without spaces between bytes. Non-English characters use UTF-8.

How to use the Text ⇄ Hex

  1. Enter your textType or paste your text.
  2. Pick the optionsaction and put a space between bytes (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

The result the Text ⇄ Hex gives for a short sample note that contains a date, an e-mail address, a web address, a phone number and prices (produced by the tool itself).

Action
Text to hex

Result:

43 61 66 c3 a9 20 4f 6c c3 a9 20 6f 70 65 6e 65 64 20 6f 6e 20 31 32 20 4d 61 72 63 68 20 32 30 32 35 20 69 6e 20 4c 61 68 6f 72 65 2e 0a 45 6d 61 69 6c 20 68 65 6c 6c 6f 40 65 78 61 6d 70 6c 65 2e 63 6f 6d 20 6f 72 20 76 69 73 69 74 20 68 74 74 70 73 3a 2f 2f 65 78 61 6d 70 6c 65 2e 63 6f 6d 2f 6d 65 6e 75 20 66 6f 72 20 74 68 65 20 6d 65 6e 75 2e 0a 43 61 6c 6c 20 2b 39 32 20 33 30 30 20 31 32 33 34 35 36 37 20 74 6f 20 6f 72 64 65 72 3b 20 64 65 6c 69 76 65 72 79 20 69 73 20 66 72 65 65 20 6f 76 65 72 20 31 35 30 30 20 72 75 70 65 65 73 2e 0a 54 68 65 20 63 61 66 c3 a9 20 73 65 72 76 65 73 
…

Good to know

What you need
You type or choose: Input text
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

What is it used for?

Debugging, programming and data formats.

Can I paste 0x41?

Paste plain hex digits like 41 42 43.

More tools in Developer

See all Developer tools