Base64 Encoder/Decoder
Encode text and files to Base64, or decode Base64 back to their original form.
Input
Output
Frequently asked questions
- Is my data uploaded anywhere?
- No. Encoding and decoding both happen locally in your browser — nothing is sent to a server.
- Can I encode a file, not just text?
- Yes. Switch to file upload to convert any file (an image, PDF, etc.) into its Base64 text representation, or decode Base64 text back into a downloadable file.
- Why did decoding fail?
- Base64 text must only contain a specific set of characters and correct padding. If the input was copied incorrectly or isn't actually Base64, decoding will fail.
- What is Base64 used for?
- Base64 encodes binary data as plain text, commonly used to embed images in CSS/HTML, attach files in emails, or pass binary data through text-only systems like JSON.