Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text. Also encode files to data URIs. Free, browser-only, no upload.
Frequently Asked Questions
Is encoding private?
Yes. Encoding/decoding uses JavaScript's built-in btoa/atob functions and FileReader. Nothing is uploaded. Safe for keys, tokens, sensitive data.
Can I encode a file?
Yes — click "Load file" to encode any file as Base64. Useful for embedding small images in HTML/CSS as data URIs.
What's the difference between standard and URL-safe Base64?
Standard uses +/= which can break URLs. URL-safe replaces + with -, / with _, and removes padding. Use URL-safe when the result goes into a URL or filename.