Base64 & URL Encoder
Encode and decode Base64, URL-safe Base64, URL components, full URLs, hex and HTML entities. Live two-way conversion with correct UTF-8 handling, entirely in your browser.
Plain text
Base64
Which encoding do I need
- Base64 turns any bytes into letters, digits, plus and slash. Used in email attachments, data URLs, HTTP basic auth and certificates.
- Base64 URL-safe swaps plus and slash for minus and underscore and drops the padding. Used in JWTs and query strings.
- URL component escapes everything that is not allowed inside a single query value, including slashes and ampersands. Use it for one parameter.
- Full URL keeps the structure characters (colon, slash, question mark, ampersand) and only escapes spaces and non-ASCII. Use it for a complete address.
- Hex shows every byte as two hexadecimal digits, handy for protocol dumps and hashes.
- HTML entities escape angle brackets, ampersand and quotes so text can be placed safely inside HTML.
Unicode handled correctly
Text is converted to UTF-8 bytes before Base64 or hex encoding, so umlauts, emoji and non-Latin scripts round-trip without damage. Decoding assumes UTF-8 as well and tells you when the bytes are not valid text.
Questions
Is Base64 encryption?
No. It is a reversible encoding anyone can decode. It hides nothing.
Why does my decoded Base64 show strange characters?
The data is probably binary, an image or a compressed blob, not text. The length in bytes is still correct.
Does the tool upload my text?
No. All conversions run in your browser with plain JavaScript.