Skip to main content
Cookie preferences

We use analytics cookies to understand usage and improve CleanTextLab. You can accept or decline Privacy policy. Manage preferences.

All tools

Hex Converter

The ultimate Hexadecimal utility. Convert text strings, massive numbers, and color codes instantly in your browser.

Loading Tool…

Hex Converter (Text, Base64, Numbers, Color, Network & Hex Dump)

Translate text and numbers into Hexadecimal string sequences and back. Computers visualize binary data as Hex (base-16) for readability. This tool allows you to convert ASCII/UTF-8 text and Base64 into hex, switch between decimal/binary/octal/hex for large numbers with bitwise operations, generate hex palettes from RGB/HSL colors, format MAC and IP addresses, and view xxd-style hex dumps of files or text.

How it Works

  • 1Choose a mode: Text, Number, Color, Network, or Hex Dump using the tabs.
  • 2Text Mode: Encode text or Base64 to Hex or decode back. Use options for delimiters (spaces, colons) and prefixing (0x). Supports batch processing.
  • 3Number Mode: Enter a decimal, hex, or binary number. View all base representations, byte-swap for endianness, or use the bitwise calculator.
  • 4Color Mode: Paste hex, RGB, HSL, or CSS color names. Get conversions and generate complementary/analogous color palettes.
  • 5Network Mode: Reformat MAC addresses into standard separators (colons, dashes, dots) or convert IPv4 addresses to hex.
  • 6Hex Dump Mode: Drag & drop a file (up to 1 MB) or paste text to generate a classic xxd-style hex dump.
  • 7Copy the results or use 'Copy as Code' to export as C arrays, Python bytes, JS Buffers, or curl commands.

Key Features

Text & Base64: Encode/decode UTF-8, base64, and hexadecimal.
Option customizers: Customize separators (space, colon, none), prefixes (0x), and casing.
Number base engine: Convert decimal, hex, binary, and octal with BigInt support.
Bitwise calculator: Perform AND, OR, XOR, NOT, and shifts.
Endianness toggle: Swap byte order (little-endian vs big-endian).
Color palette generator: View analogous/triadic HSL color rotations.
Network utilities: Format MAC addresses and map IPv4 to hex.
Interactive hex dump: Generate offset, hex columns, and ASCII translations.

Common Use Cases

Network Sniffing: Decode packet payloads from Wireshark, formats MAC/IP addresses.Low-level Systems: Analyze file headers, byte orders, and swap endianness.Software Engineering: Copy byte arrays as C unsigned char[], Python bytes, or JS Buffers.Graphic Design & UI: Convert color codes and generate cohesive color palettes.Data Analysis: Encode/decode Base64 data and inspect hex dumps.

Frequently Asked Questions

Everything you need to know about using this tool effectively and securely.

Q.What is Hexadecimal?

Hexadecimal is a base-16 number system used to represent binary data in a human-friendly way. Each hex digit represents 4 bits (a nibble).

Q.What is a hex dump?

A hex dump is a visual representation of raw binary data. It traditionally divides the binary stream into lines showing the memory offset, hex bytes, and ASCII characters.

Hex Converter — Text, Numbers, Colors, Hex Dump & More | CleanTextLab