Base64 encoder and decoder
Convert text to Base64 and back instantly, with full UTF-8 support (accents, emoji). Encode a file to embed it as a data URL, or decode a Base64 string into the file it contains. Developers often paste credentials or private data here: everything is converted in your browser and never leaves your device.
Your data never leaves your device
How to use Base64 Encoder and Decoder
- 1
Choose “Encode” or “Decode”.
- 2
Type or paste your text, or click “Encode a file”.
- 3
Copy the result, or download the decoded file when it is not text.
Frequently asked questions
Is Base64 a form of encryption?
No. Base64 only represents binary data with 64 printable characters, so it can travel in text formats such as JSON, emails or URLs. Anyone can decode it: it does not protect anything.
What is Base64url?
A variant that uses “-” and “_” instead of “+” and “/”, and drops the “=” padding, so the result can go in a URL or a file name without escaping. It is the format used by JSON Web Tokens. The decoder accepts both variants.
How do I convert an image to Base64?
Choose “Encode”, click “Encode a file” and pick the image. Check “Data URL” to get a string such as data:image/png;base64,… that can be used directly in HTML or CSS.
Why do accents or emoji give unexpected results elsewhere?
Base64 encodes bytes, not characters: the same text gives different Base64 depending on its encoding. This tool always uses UTF-8, the standard encoding of the web, both to encode and to decode.
Is my data sent to a server?
No. Encoding and decoding are done by your browser, on your device. Nothing you paste or open is sent or stored, which matters for API keys, tokens or personal files.
Related tools
-
JWT Decoder
Decode a JSON Web Token, read its claims and dates, and verify its signature. -
Hash Generator
Compute MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, and compare them. -
JSON Formatter
Format, minify and validate JSON with precise error messages (line and column). -
JSON to CSV Converter
Convert JSON to CSV for Excel, or CSV to JSON, with a table preview.