Loona Automation logoLoona Developer Tools
Home › Encoders & Decoders

Text to Hex Converter

In short: see any text as the hexadecimal representation of its UTF-8 bytes — the view debuggers, protocol docs and file-format specs all use. Byte-spaced or continuous output.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

Example

Input:

Hi!

Output:

48 69 21

About this converter

Hexadecimal writes each byte as two digits from 0–9 and A–F, so one byte is always exactly two characters — which is why hex is the lingua franca of low-level work: memory dumps, color codes, MAC addresses, hash outputs and binary protocols are all conventionally written in hex. The important subtlety for text is the encoding underneath: this converter shows the UTF-8 bytes, so an ASCII letter is one byte (H = 48) while an accented letter is two (é = C3 A9) and an emoji is four. If a different tool shows different hex for the same text, it is using a different character encoding — UTF-16 is the usual suspect.

Frequently Asked Questions

Why does one letter sometimes become four hex pairs?

In UTF-8, characters outside basic Latin take 2–4 bytes. The hex shows bytes, not characters.

Is hex the same as Base64?

Both write binary data as text. Hex uses 16 symbols (2 characters per byte, 100% overhead); Base64 uses 64 symbols (33% overhead) and is preferred for transport; hex is preferred for inspection.

What does 0x mean in front of hex?

A prefix programmers add to mark a number as hexadecimal (0x48 = 72 decimal). It is notation, not part of the value.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.