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

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.

← Back to File Tools