Skip to content
M2TOOLKIT

Text · free tool

Text to Hex Converter

Convert text to hexadecimal, or decode hex back into readable text.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Text
  • Free
  • No sign-up
  • Nothing is sent or stored
  • Updated
Direction
Separator
0 characters
Text is encoded as UTF-8, so accents and emoji work.

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Text to Hex Converter

  1. Choose the direction.
  2. Type text or paste hex (spaces and 0x prefixes are fine).
  3. Copy the result.

What does this tool do?

Hexadecimal writes each byte as two digits from 0–9 and A–F, which is compact and easy to read in debuggers, network tools and file dumps. “Hi” is 48 69.

Decoding accepts hex with or without spaces and with 0x prefixes, and tells you if the bytes aren't valid UTF-8.

Why use it?

  • Both directions.
  • Forgiving input.
  • UTF-8 validation.

Use cases

  • Inspect hidden characters such as tabs, non-breaking spaces and line endings.
  • Prepare test data for network protocols, embedded devices and APIs.
  • Decode hex dumps from logs and debuggers into readable text.

Text and its hex bytes

UTF-8 bytes, two hex digits each:

TextHex
Hello48 65 6C 6C 6F
A41
€E2 82 AC
new line0A

Common mistakes

  • Assuming one hex pair per character — non-English characters use two to four bytes.
  • Pasting hex with an odd number of digits; every byte needs two.
  • Confusing hex text with colour codes like #FF5733, which are three numbers, not text.

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

What's the difference between CRLF and LF?

Windows line endings are 0D 0A (CR LF); macOS and Linux use just 0A (LF). Hex makes this visible.

Is uppercase or lowercase hex correct?

Both mean the same: 4F and 4f are identical.

Can it decode Base64?

No — Base64 is a different encoding. Use a Base64 decoder for that.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the text to hex converter.