Hex and Base64 Tools

Every converter and reference page on this site, grouped by what they work on. All tools run in your browser: what you paste or choose is not sent anywhere.

Hex and text

Hex code decoder
Reads hexadecimal as text in UTF-8, UTF-16, ASCII, Latin-1 or Windows-1252 and reports bad digits with their position.
Hex to ASCII
Converts hex bytes to ASCII text and rejects bytes above 7F instead of guessing.
Text to hex
Encodes text as hex with a choice of encoding, separator, prefix and letter case.
Binary to text
Reads groups of eight bits as UTF-8 or ASCII text, and turns text back into binary.
Hex viewer
Opens any file as an xxd-style hex dump with offset jump, byte and text search, file type and CRC-32, SHA-1 and SHA-256.
ASCII to hex
Writes each ASCII character as one hex byte and flags characters outside ASCII.

Number bases

Hex converter
Shows one value in hexadecimal, decimal, binary and octal, with signed readings.
Hex to decimal
Converts hex to decimal with place values, two's complement readings and list input.
Decimal to hex
Converts integers to hex by repeated division, including negative numbers in two's complement.
Hex to binary
Replaces each hex digit with four bits, with optional grouping and prefix.
Binary to hex
Groups bits in fours from the right and shows each group as a hex digit.
Hex to float
Decodes 4 or 8 bytes of hex as an IEEE 754 single or double, with the sign, exponent and mantissa shown.
Float to hex
Encodes a decimal number as IEEE 754 hex, single or double, in either byte order, with the rounding error.
Hex to RGB
Converts hex color codes of 3, 4, 6 or 8 digits to RGB, HSL and CMYK, with a swatch and contrast ratios.
Binary to decimal
Adds the place value of every 1 bit and shows the working; long values stay exact.
Decimal to binary
Converts integers of any size to binary by repeated division by 2, with the remainders shown.
Two's complement calculator
Encodes and reads signed values at 4, 8, 16, 32 or 64 bits, with the flip-and-add-one steps and the range.
RGB to hex
Converts rgb() values, plain numbers and percentages to a hex color code, with swatch and HSL.
Hex calculator
Adds, subtracts, multiplies and divides hex values and applies AND, OR, XOR and shifts.

Base64

Base64 decode
Decodes standard and URL-safe Base64 to text or a file and names invalid characters.
Base64 encode
Encodes text or a file in standard, URL-safe or MIME-wrapped Base64.
Base64 to image
Previews and downloads an image from a Base64 string or data URI.
Image to Base64
Converts an image file to Base64, a data URI, an img tag or a CSS rule.
Base64 to PDF
Decodes a Base64 PDF, checks its header and end marker and previews it.
Hex to Base64
Converts hex bytes to standard or URL-safe Base64 and shows the byte count of both forms.
Base64 to file
Decodes a Base64 string or data URI, names the file type from its first bytes and downloads it.
Base32 decode
Decodes Base32 in the RFC 4648, base32hex, Crockford and z-base-32 alphabets, and encodes text to Base32.
Base64 to hex
Converts Base64 to hex bytes, and hex back to Base64.

Detection

Auto decoder
Identifies hex, Base64, URL encoding, binary, HTML entities or a JWT and decodes it.

Reference

ASCII table
All 128 ASCII codes in decimal, hex, octal and binary, with control character names and a table for bytes 128 to 255.
Hexadecimal
How base 16 works, how to write it in code, and where hex is used.
Base64
The alphabet, padding rules, variants, RFC 4648 test vectors and common uses.

How the tools relate

The hex tools and the Base64 tools share one core library, so the same bytes give the same answer on every page: the hex decoder and the Base64 decoder agree on what a byte is, and the converters between them, Base64 to hex and its reverse, work on those bytes. When you are not sure which encoding a string is in, the auto decoder lists the possibilities, and the reference pages explain the notation behind the tools.