Base64 Encoder & Decoder
Convert plain text and image files to Base64, or decode a Base64 string back to text or an image.
The result will appear here.
What Base64 is used for
Base64 encodes binary data (like an image) or arbitrary text as plain ASCII characters, which makes it safe to embed inside JSON, URLs, CSS or HTML where raw binary data isn't allowed.
Processed entirely on your device
Text and images are encoded or decoded using your browser's built-in Base64 and file APIs. Nothing is uploaded to a server, which makes this tool safe for sensitive text or private images.
Frequently asked questions
Why did decoding fail?
The input must be a valid Base64 string with no extra characters; copy it exactly as generated, without line breaks added by some editors.
Can I decode an image without the "data:image/..." prefix?
Yes, paste just the raw Base64 characters and the tool will assume a PNG image.
Does Base64 encoding compress the data?
No, it actually increases the size by roughly 33%, since it's meant for safe transport, not for compression.
Related tools
You might also need these while working on the same task.
Format, minify and validate JSON with an exact error location.
Open toolEncode or decode URLs and query string components instantly.
Open toolGenerate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from any text.
Open toolConvert PNG and JPG to WebP and shrink file size right in your browser.
Open tool