Base64 / Hex / URL Converter
Encode and decode Base64, hex and URL-encoded text in your browser — no data leaves your machine.
Base64, hex and URL encoding
Pick a format and a direction, then convert. Base64 and hex both round-trip full UTF-8 text, not just ASCII. Everything runs locally in your browser.
Common uses
- Decoding a Base64-encoded JWT segment, Basic Auth header, or API payload by hand
- Converting data to hex for logging or comparing byte-for-byte
- URL-encoding a query parameter that contains spaces or special characters
FAQ
Does Base64 encoding work with emoji and non-English text?
Yes — text is encoded as UTF-8 bytes first, so round-tripping works for any Unicode text, not just ASCII.
What about “URL-safe” Base64?
This tool uses standard Base64 (with +, / and = padding). URL-safe Base64 (-, _, no padding), such as in JWTs, is a distinct encoding — swap the characters manually if you need it.
Why does decoding sometimes fail?
Base64 decoding fails on strings with invalid characters or wrong padding; hex decoding requires an even number of hex digits.