Skip to main content
matte

Base64

Encode and decode Base64, instantly.

Runs in your browser

About

Base64 encodes text or files to Base64 and decodes Base64 strings back to text or a downloadable file, handling UTF-8 text correctly rather than just ASCII, which trips up naive implementations. There's also a URL-safe encoding mode for use in query strings and filenames. Encoding and decoding both happen locally; nothing you paste or upload is sent anywhere.

Frequently asked

Does it handle non-ASCII text correctly?
Yes, UTF-8 text is encoded and decoded correctly, including emoji and accented characters, using proper text-decoder handling rather than naive byte casting.
Can I encode a file, not just text?
Yes, files can be uploaded and encoded to Base64, and Base64 strings can be decoded back into a downloadable file.