Base64 encode and decode
Encode text or any file to Base64 and decode Base64 back to text or the original file, with a URL-safe option.
Questions
What does URL-safe mean?
URL-safe Base64 (base64url, RFC 4648 section 5) uses - and _ instead of + and / and drops the = padding, so the result can sit in a URL or a JWT without escaping. Decoding here accepts both forms.
Can I turn a Base64 string back into an image or PDF?
Yes. Paste the Base64 (or a full data: URL) in Decode mode. If it is not text, the tool detects common file types such as PNG, JPEG, GIF, WebP, PDF and ZIP from their first bytes and offers the file for download.
Why is the Base64 bigger than my file?
Base64 writes every 3 bytes as 4 characters, so the output is about a third larger than the input.
Are my files uploaded?
No. Encoding and decoding happen in your browser, and big files are handled in a background worker.