Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Text to Hex Converter

This tool converts text to hexadecimal bytes. You choose the separator and a prefix such as 0x, and the text is written as UTF-8 bytes.

How to use Text to Hex Converter online

  1. Type the text. Paste your text.
  2. Choose the layout. Separator, prefix and case.
  3. Read the hex. The bytes appear at once.
  4. Copy it. Copy or save the result.

Why use this free Text to Hex Converter

  • UTF-8 bytes
  • Four separators
  • Prefix 0x or \x
  • Upper or lower case
  • Byte count shown
  • Share by link

Text as hex

Every character of text is stored as one or more bytes, and each byte can be written as two hexadecimal digits. The word Hi is the bytes 48 and 69. Hex is a compact way for people to read and write bytes. It is used in network traces, memory dumps, colour codes and file formats.

Options

Put a space, a comma, a new line or nothing between the bytes. Add the prefix 0x, as in 0x48, or \x, as in \x48, which are the forms C and many other languages use. Choose upper or lower case for the letters A to F. Each choice only changes how the same bytes are written.

A worked example

The text "Hello, World" is 12 bytes, because every character is plain English. In hex it is 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64. An accented letter or an emoji would take two to four bytes, so the byte count can be larger than the character count: é is C3 A9.

Going back

The hex to text converter turns bytes back into text, and accepts spaces, commas and the prefixes. If you want binary, octal or decimal numbers instead, the binary text converter offers those. For checking what a string really holds, including the code point of each character, use the Unicode converter.

Not encryption

Hex is only another way to write the same data, and anyone can turn it back. It does not hide or protect anything. For a fixed fingerprint of text, use the hash generator. The tool works in your browser and keeps nothing.

Using the tool

The Text to Hex Converter works again whenever the text or an option changes. Press Try a sample to see how it behaves.

Text to Hex Converter: frequently asked questions

How do I convert text to hex?
Paste the text. Each UTF-8 byte is written as two hex digits.
Why is é two bytes?
UTF-8 stores it in two bytes, C3 A9.
Can I add 0x in front?
Yes, choose the prefix.
Can I get one line?
Yes, pick a space, comma or nothing between the bytes.
Is hex a kind of encryption?
No, anyone can decode it.
Does the Text to Hex Converter keep a copy of my text?
No. The Text to Hex Converter works in your browser, and nothing is uploaded.
Can I chain the Text to Hex Converter with another tool?
Press Use result as input and the Text to Hex Converter answer becomes the new input.

Related searches for Text to Hex Converter

  • Text to Hex Converter online
  • free Text to Hex Converter
  • Text to Hex Converter online free
  • Text to Hex Converter for mobile
  • Text to Hex Converter without sign up
  • convert text to hex converter
  • text to hex converter converter
  • Text to Hex Converter – Text & Writing Tools

Text to Hex Converter is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Text & Writing Tools →

Search tools