snaptools
H
Text to Hex error
⌃⏎ run · clear · / focus input
// about this tool

Text to Hex Online

Updated 2026-07-09

Convert text to hexadecimal online for free. Type any string and SnapTools shows its UTF-8 bytes in hex, character by character — spaces between bytes for readability, ready to copy or download. Everything runs in your browser, so your text is never uploaded.

Seeing a string as raw hex bytes is essential when you are debugging an encoding problem, building a hex literal for code, or checking exactly how a Unicode character is stored. Because the text is encoded as UTF-8 first, you can see clearly why an accented letter or emoji takes more than one byte — and reverse the whole thing any time with Hex to Text.

// how to use

  1. 1 Type or paste text into the input panel on the left.
  2. 2 SnapTools converts each character to its UTF-8 hexadecimal bytes as you type.
  3. 3 Copy or download the hex output, or switch to Hex to Text to reverse it.

// examples

Word to hex
Input
Hi
Output
48 69
Unicode character
Input
Output
e2 82 ac

// common uses

Inspecting the exact bytes behind a string Debugging character encoding issues Producing hex literals for code or config Teaching or learning how UTF-8 encodes characters

// faq

No. The conversion runs entirely in your browser, so your text never leaves your machine.
Text is encoded as UTF-8 first, then each byte is shown in hexadecimal. This means characters outside ASCII — accents, emoji, symbols — expand to two or more bytes.
In UTF-8, characters above the basic ASCII range are stored as multiple bytes, so a single symbol like € becomes three hex values (e2 82 ac).
Yes. Use the Hex to Text tool, which accepts hex with spaces, colons, or a 0x prefix and decodes it back to readable text.
Hex bytes are shown in lower case and separated by spaces, a widely readable convention. The Hex to Text tool accepts either case on the way back.

Use this via API

Get a free API key →
curl -X POST https://snaptools.dev/api/v1/tools/text-to-hex \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Hi"}'
Esc
↑↓ navigate open Esc close