Base64 Encoder & Decoder
Convert text to and from Base64, including UTF-8 and the URL-safe variant, and turn images into Base64 and back
Runs locally in your browser. Nothing is uploaded.
Text to encode
Result
Choose an image
Click to choose or drop an image here
PNG, JPEG, GIF, WebP, SVG and more, up to 10 MB
Base64 output
Paste Base64
You can also paste a whole img tag or CSS rule; the Data URL inside is picked out for you
Image preview
How to use
- 1Pick a type and direction
Choose Text or Image at the top, then encode or decode.
- 2Enter your input
Type text, paste Base64 or drop an image. The result updates as you go, and any format error points to the exact character.
- 3Copy or download
Click Copy above the result. Images restored from Base64 can be downloaded directly.
Tips
- Base64 isn’t encryption
Anyone can decode it back, so never use it to hide passwords or keys.
- About a third bigger
Every 3 bytes become 4 characters. Inlining icons of a few KB in HTML or CSS is fine; larger images load faster as normal files.
- When to use URL-safe
Use the URL-safe variant in query strings, file names and JWTs so + / = aren’t mistaken for special characters. Both variants can be pasted straight into the decoder.