Hex Converter — Text ↔ Hexadecimal, Hex Color, Hex → Decimal

Convertisseur hexadécimal

Convert any text to hexadecimal — or decode hex back to text. Plus separate modes for hex ↔ decimal and CSS hex color → RGB. Useful for debugging, encoding inspection, embedded systems, and design work.

Saisir

Sortir

How to use the Hex Converter

Paste text, hex, decimal, or a CSS hex color. Pick a mode. Output updates in real time. Hex output uses lowercase with spaces between bytes for readability. Hex input is forgiving — spaces, 0x prefixes, and # marks all get stripped.

Pourquoi cet outil est important

Hexadecimal is the universal compact form of binary data. Memory addresses, color codes, network packet captures, cryptographic outputs, hash digests, and binary file inspection all use hex. Conversion between hex, decimal, and text is the most common low-level debugging task.

Cas d'utilisation courants

  • Inspecting bytes in network captures or hex dumps
  • Converting RGB color values to CSS hex codes
  • Decoding hex-encoded API responses
  • Calculating memory offsets and addresses
  • Debugging embedded systems and IoT integrations
  • Translating crypto hash outputs to readable format

Hex vs. Base64 vs. Binary

Hex is compact and human-readable (each byte is 2 characters). Base64 is denser (each 3 bytes becomes 4 characters — 33% overhead vs hex\u2019s 100%). Binary is the most expressive but unreadable. Use hex for short identifiers and debugging; use Base64 for long payloads; use binary only for low-level system work.

Foire aux questions

Why do I see "0x" prefixes sometimes?
"0x" is the conventional prefix for hex numbers in C-family languages. Our decimal-to-hex output uses it. CSS color hex uses "#" instead. Both mean the same thing — what follows is in base 16.

What\u2019s the difference between hex and Base16?
They are the same thing — "hexadecimal" and "Base16" both refer to base-16 encoding. RFC 4648 standardizes the format as "Base16".

Can I convert hex to ASCII art?
Hex is a text encoding of bytes. If those bytes happen to be visible ASCII characters, the Hex → Text mode will decode them. For ASCII art generation, use our ASCII Art Generator tool instead.

Why is the hex output always lowercase?
Lowercase is the modern convention (RFC 4648). Uppercase is acceptable but visually noisier. If you need uppercase output, transform the result after copying.

Building marketing technology with low-level integrations or analytics pipelines?

Riman Agency builds martech and integration architectures.

Discutez avec MarTech

Passer au panneau d'accessibilité