Encoding tools
Encoding represents the same data in a different form. Unlike encryption, encoding needs no key and provides no security. It exists to move bytes safely through systems that only accept text.
Hex
Hex Encode
Encode text or bytes to hexadecimal.
Hex Decode
Decode hexadecimal back to text.
Hex Dump
Display any input as a hex dump with offsets and ASCII.
Hex Encode File
Encode any file as hex in your browser. Drop a file, get the hex text.
Hex Decode File
Decode hex text back to a file. Download the result.
Binary
Base32
Base58
Base64
URL
HTML
CBOR
Classical
ROT13
Encode and decode ROT13, ROT5, ROT18, and ROT47 - the classic letter-rotation ciphers.
Caesar Cipher
Encode and decode the Caesar cipher with any shift from 1 to 25, including ROT-N variants.
Classical Cipher Toolkit
Encode and decode 9 classical ciphers: Atbash, Vigenere, Beaufort, Playfair, Rail Fence, Bacon, A1Z26, Polybius, Affine.
About encoding tools
Base64 packs 3 bytes into 4 characters and is used everywhere: email attachments, JSON Web Tokens, data URIs, and API payloads. The URL-safe variant replaces + and / with - and _ so tokens survive being placed in URLs.
Base32 is less compact but case-insensitive and avoids look-alike characters, which is why it appears in TOTP secrets and DNS records. Hex (Base16) doubles the size but is trivially readable and comparable by eye, making it the standard for hash outputs and MAC addresses.
URL and HTML encodings protect content from being misinterpreted by parsers. Percent-encoding keeps reserved characters out of URL paths and query strings. HTML entity encoding prevents user content from being treated as markup. Both are essential for building anything that handles untrusted input.
When to use these tools
- You are building a URL and a query parameter contains a space, an ampersand, or a non-ASCII character. URL Encode percent-encodes it so the server receives the value intact.
- You are decoding a JWT and the header or payload looks like base64 but won't parse. It is Base64url, a variant that uses - and _ instead of + and /. Use the URL-safe option.
- You have a hex dump from xxd or hexdump and need to read the text. Hex Decode converts it; Hex Encode produces the same format xxd does.
- You are setting up TOTP and the shared secret is Base32. Base32 Decode shows the raw bytes; the TOTP tool accepts the Base32 secret directly.
- You have a MessagePack payload from Redis, Kafka, or a microservice, and you need to see the JSON inside. MessagePack Decode produces it.
Which tool should I use?
| If you need... | Use... | Why |
|---|---|---|
| URL query or path | URL Encode | Percent-encodes reserved characters |
| HTML text content | HTML Encode | Escapes <, >, &, and quotes for safe display |
| JWT segments | Base64 Decode (URL-safe) | JWT uses base64url, not standard base64 |
| Binary in JSON or email | Base64 Encode | Universal binary-to-text format |
| Case-insensitive transport | Base32 Encode | Uppercase only, no look-alikes |
| Compact URL-safe ID encoding | Base58 Encode | Bitcoin alphabet, no ambiguous characters |
| Binary JSON payload | MessagePack Encode | Smaller than JSON, faster to parse |
| Binary JSON, standardized | CBOR Encode | RFC 8949, broader extension support |
| Read a hex dump | Hex Decode | Same format as xxd and hexdump |