All Over Tools logo
Tool Combiner
Analyze Tools Clean Tools Compare Tools Convert Tools Data Validation Extract Tools Format Tools Generate Tools Organize Tools Transform Tools
Audio Tools Font Tools Image Tools Subtitle Tools Video Tools
Archive Tools Document Tools Ebook Tools File Management Tools PDF Tools Presentation Tools
Config Tools Database Tools Dataset Tools JSON Tools Parser Tools Spreadsheet Tools XML Tools
Business Calculators Construction Calculators Date And Time Calculators Education Calculators Financial Calculators Food Calculators Health Calculators Math Calculators Science Calculators Sports Calculators Statistics Calculators
Blog About Us Contact Us

Hex Converter

Convert text to hexadecimal or decode hex back to text. Supports 0x, \x, space-separated, and raw formats.

Use Hex → Text for hexadecimal input, or Text → Hex for ordinary text.

Looking for a live color swatch or WCAG contrast checker for hex color codes? That has moved to the Color Picker, which also converts between HEX/RGB/HSL/HSV/CMYK and generates harmony palettes.

How to use the Hex Converter

Start in Source text or hexadecimal, then choose Hex → Text to decode bytes or Text → Hex to encode text. The result appears in Converted output as soon as the source or a conversion option changes. Text → Hex also lets you choose Space, 0x prefix, \x escape, or Raw.

Choose a conversion direction

  1. Choose Hex → Text for hexadecimal input, or Text → Hex for ordinary text.
  2. Enter or paste the source in Source text or hexadecimal, or choose Upload.
  3. For Text → Hex, select Space, 0x prefix, \x escape, or Raw. Turn on Uppercase hexadecimal letters when you want capital A-F characters.
  4. Read Converted output, then choose Copy or Download.

How to convert text to hex

Text → Hex encodes the entered string as UTF-8 bytes. Space puts one space between bytes. 0x prefix puts 0x before each byte, \x escape joins escaped bytes, and Raw removes separators. Uppercase hexadecimal letters changes the rendered output to uppercase, including prefix characters in 0x prefix and \x escape formats.

Input: Hello
Space: 48 65 6c 6c 6f
0x prefix: 0x48 0x65 0x6c 0x6c 0x6f
\x escape: \x48\x65\x6c\x6c\x6f
Raw: 48656c6c6f

How to decode hexadecimal to text

Hex → Text trims the source and turns repeated whitespace into single spaces. It accepts hexadecimal digits with optional spaces, plus 0x or \x at the start of a token. The remaining digits must form complete two-digit bytes. Other characters, an odd digit count, or invalid UTF-8 bytes produce an error.

Hex input: 48 65 6C 6C 6F
Converted output: Hello

What the input and output controls do

Conversion runs when the source or a conversion option changes. Converted output is read-only after a successful conversion. Copy puts the result on the clipboard. Download saves it as a text/plain;charset=utf-8 Blob.

The page script uses TextEncoder and TextDecoder in the browser. It contains no fetch, XMLHttpRequest, sendBeacon, or form submission for the entered content, so that content stays in the browser during conversion.

Upload accepts files with .txt, .csv, .log, or .md extensions and the text/plain MIME type. The selected file supplies Source text or hexadecimal for the same conversion direction and format choices.

Examples for hexadecimal conversion

  • Use Hex → Text when a log contains 48 65 6C 6C 6F and you need its readable value.
  • Use Text → Hex with Space when each byte needs its own separated value, or Raw when separators would get in the way.
  • Use Upload when the source is in a supported text file, then copy the converted output for the next step.

Choose another text converter for a different format

Use Text Transformation Tools when the task is broader than hexadecimal conversion. Binary Converter handles decimal, hexadecimal, binary, or octal character codes with a per-character breakdown. HTML Entity Encoder / Decoder handles named, decimal, or hexadecimal HTML entity references. Morse Code Converter handles Morse code and includes playback and WAV download controls.

Frequently asked questions

How do I convert text to hexadecimal?

Choose Text → Hex and enter text in Source text or hexadecimal. Converted output shows the UTF-8 bytes. Select Space, 0x prefix, \x escape, or Raw to change their layout.

How do I decode hex to text?

Choose Hex → Text and enter bytes such as 48 65 6C 6C 6F. The converter returns Hello when the input contains complete two-digit values that form valid UTF-8.

What does the Uppercase hexadecimal letters option change?

Uppercase hexadecimal letters changes Text → Hex output to uppercase, including A-F and the prefix characters in 0x prefix or \x escape output. It does not change decoded text in Hex → Text mode.

Can I upload a text file for hex conversion?

Choose Upload and select a .txt, .csv, .log, or .md file, or a file with the text/plain MIME type. The selected content becomes the source for the chosen conversion direction.

Related Tools

66 views