Base64 Encoder / Decoder
How to use
Converts text or files into Base64, and converts Base64 back into the original data. Base64 is commonly used to send data safely inside emails, URLs, or JSON. Type your text or pick a file, then choose Encode or Decode. The result can be copied with one click.
- Embedding a small image inline as a data URI in CSS or HTML
- Encoding binary data safely for inclusion inside a JSON payload
- Decoding a Base64 string found in an API response to inspect its actual content
- Converting a small file to Base64 for a config value or environment variable
Free and private. Everything runs on your own device, with no account and no uploads.
Embedding a small image inline in CSS, sending binary data safely inside a JSON payload, or decoding a Base64 string found in an API response are all common developer tasks. This tool encodes text or uploaded files into Base64, and decodes Base64 strings back into their original text or downloadable file, all processed locally without uploading your data anywhere.
Yes, you can upload a file and the tool will produce its Base64 representation, which is useful for embedding small assets directly in code or data URIs.
Decoding fails if the input is not valid Base64, for example if it contains characters outside the Base64 alphabet or has incorrect padding.
No, Base64 is only an encoding scheme for representing binary data as text, it provides no security or confidentiality, and anyone can decode it instantly.
- 1
Enter text or choose a file
Type text directly, or upload a file you want to encode.
- 2
Select Encode or Decode
Pick the direction based on what you are starting with.
- 3
Run the conversion
The tool processes the input in your browser.
- 4
Copy or download the result
Copy the text result, or download the decoded file.
- ·Remember Base64 is not encryption, anyone can decode it instantly, so never use it to hide sensitive data.
- ·If decoding fails, check for missing padding or characters outside the standard Base64 alphabet.
- ·For URL-safe contexts, be ready to swap "+" and "/" for "-" and "_" manually, since only standard Base64 is produced here.