Base64 Encoder / Decoder
Encode text to Base64 and decode it back with full UTF-8 support, including URL-safe Base64.
What is Base64?
Base64 represents text or binary data using 64 safe characters (A–Z, a–z, 0–9, + and /). It's used in email attachments, HTTP Basic Authentication headers, binary data inside JSON and data URLs.
Unicode support
Many simple Base64 tools break accented characters and emoji. This tool converts text to UTF-8 bytes first, so text with characters like 'ğüé' or emoji survives the round trip exactly.
URL-safe Base64
Get output in the URL-safe variant that uses - and _ instead of + and /. Decoding accepts both alphabets. Base64 isn't encryption and doesn't protect sensitive information.
How to use Base64 Encoder / Decoder
- Paste text or a Base64 string.
- Choose encode or decode.
- Tick URL-safe output if needed.
- Copy the result.
Why use this tool?
Handles a conversion you need constantly when developing and debugging, without character problems.
FAQ
Is URL-safe Base64 supported?
Yes. Decoding accepts both the standard and URL-safe (- and _) alphabets, and you can choose URL-safe output.
Is Base64 encryption?
No. It's an encoding anyone can decode instantly; it provides no confidentiality.
Can I convert an image to Base64?
For images, use the Image to Base64 tool.
Related tools
URL Encoder / Decoder
Encode or decode URLs and query parameters with percent-encoding.
Open toolImage to Base64 Converter
Convert an image into Base64 text or a data URL ready for HTML, CSS or JSON.
Open toolJWT Decoder
Decode a JWT's header and payload and see exp, iat and nbf as readable dates.
Open toolHash Generator (MD5, SHA-256)
Calculate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files.
Open tool