Text to Hex Converter

Type or paste text and see it as hexadecimal bytes straight away. Every character is turned into its UTF-8 bytes, so English letters give one byte each and Hindi, Tamil or the rupee sign give two to four. Choose the separator and prefix your code needs (48 69, 0x48 0x69, \x48\x69 or 4869), or switch to code points for one number per character. It all runs in your browser.

Encoding
Direction

Hindi letters and ₹ take 3 bytes each.

Text
Hex

9 characters, 11 bytes in UTF-8.

Processing runs in your browser. What you type never leaves this device.

Features

  • UTF-8 bytes for any language, emoji included

  • Space, comma, new line or no separator

  • Upper or lower case, with 0x or \x prefixes

  • Code-point mode: one hex number per character

  • Swap to turn the hex back into text

  • Runs in your browser; nothing is uploaded

When you need text as hex

Escaping bytes in code

Paste a string with \x prefixes into C, Python or a shell printf when a literal would break the quoting.

Debugging encodings

See exactly which bytes a database or API stored. Garbled Hindi often turns out to be UTF-8 bytes read as Latin-1.

Protocols and hardware

Build payloads for serial devices, BLE characteristics or packet tools that take hex.

How text becomes hex

Characters, bytes and hex digits

Computers store text as bytes, numbers from 0 to 255. One byte is written as exactly two hex digits, 00 to ff. UTF-8, the encoding the web uses, stores A as one byte (41), ₹ as three (e2 82 b9) and most emoji as four.

Bytes or code points?

  • UTF-8 bytes: what files, network requests and databases actually hold. Pick this for escapes and payloads.
  • Code points: one number per character (₹ is 20B9). Pick this when a spec or font tool asks for U+ values; the code point converter writes them as U+20B9.

Related tools

More encoders on the same tool: text to binary, text to ASCII codes, Unicode escapes, Base32, Base64, ROT13 and Morse code.

Text to Hex Converter - FAQ