Hex Encoder (Text to Hexadecimal)

Convert text to hexadecimal bytes instantly in your browser. Free online hex encoder with UTF-8 support and optional 0x prefixes — no uploads.

Loading calculator…

Results

Hex output
DetailValue
Bytes
Characters

What is this calculator for?

Convert any text into its hexadecimal byte representation (UTF-8), for debugging and data representation.

How to Use This Calculator

Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.

  1. Text to encode — enter a value. A typical Text to encode would be Type or paste text here….
  2. Hex format — enter a choice from the options.
  3. Review your results — the key output is highlighted, with supporting figures below.

What You'll Need

Text to encode
a value · required
Hex format
a choice from the options (Space-separated (e.g. 48 65), Continuous (e.g. 4865), 0x-prefixed (e.g. 0x48 0x65)) · optional

About This Calculator

This hex encoder turns text into its hexadecimal byte values. Each UTF-8 byte becomes two hex digits, so ASCII letters map 1:1 and emoji/accents span multiple bytes.

Choose between space-separated bytes, a continuous string, or 0x-prefixed values for different debugging and scripting contexts. To reverse the process, use the companion hex decoder.

Encoding runs entirely in your browser.

Worked Examples

Example

48 65 6c 6c 6f

Frequently Asked Questions

Is this the same as a hash?
No. Hex encoding is reversible and preserves the original bytes. A hash (like SHA-256) is one-way and always the same length.
Why does an emoji produce more than two hex digits?
Emoji are multi-byte UTF-8 characters, so they encode to several bytes — each byte produces two hex digits.