Base64 Encode / Decode
Encode or decode Base64 text, or encode a whole file to a Base64 string — useful for embedding binary data in JSON, URLs, or data-URI images.
Text
Encode a file
Drop any file here, or click to choose one
Works entirely offline in your browser. Nothing is uploaded.
When you'd use this
- Decoding a Base64 string you've received back to its original form
- Encoding a file to embed as a data URI in JSON or a URL
- Quickly checking what a Base64-encoded value actually says
Text mode decodes Base64 as UTF-8, so encoded emoji and non-Latin text round-trip correctly. Decoding invalid Base64 (wrong characters, incorrect padding) will show an error rather than garbled output.