Base64 encoder and decoder
Convert text to Base64 and back, or turn any file into a Base64 data URI for embedding. Unicode is handled correctly and everything runs locally in your browser.
Everything runs in your browser — nothing is sent anywhere
How to use
- 1
Choose Encode or Decode.
- 2
Type or paste your text, or pick a file to encode.
- 3
Copy the result.
FAQ
Is my data uploaded?
No. Encoding happens in your browser; text and files never leave your device.
What is URL-safe Base64?
A variant that uses - and _ instead of + and / and drops padding, so the result can be placed in URLs and file names.
Does it work with emoji and non-Latin text?
Yes. Text is encoded as UTF-8 first, so any Unicode text round-trips correctly.
What does encoding a file produce?
A data URI (data:image/png;base64,…) that you can paste directly into HTML or CSS.
Related tools
URL encoder and decoderPercent-encode text for URLs or decode encoded strings in your browser. Encode a single parameter or a complete URL. Instant and private.Hash generatorCompute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files in your browser. Verify checksums without uploading anything.JSON formatter and validatorFormat, validate and minify JSON online. Exact line and column of syntax errors, 2, 4 or tab indent, copy or download. Nothing leaves your browser.