Base64 Encoder / Decoder
Encode and decode text or images to Base64. Works entirely offline.
How to use
- 1
Choose encode or decode
Toggle between Encode and Decode mode depending on whether you want to convert text to Base64 or reverse it.
- 2
Enter text or upload an image
Type or paste text in text mode, or switch to image mode to convert a file to a Base64 data URI.
- 3
Copy the result
The output updates automatically. Click Copy to use the Base64 string in your code, API, or email embed.
Frequently Asked Questions
Base64 converts binary data into ASCII text. It is commonly used to embed images in HTML/CSS, send binary data in JSON APIs, and encode credentials.
This tool decodes Base64 text to plain text. For image data URIs (data:image/...), the decoded output is binary — use the encode direction to create them from files.
No. Base64 is encoding, not encryption. Anyone can decode it. Do not use it as a security measure.
Text is encoded using UTF-8 before Base64 conversion, which correctly handles international characters and emoji.
Related tools
QR Code Generator
Generate QR codes from text or URLs. Download as PNG or SVG.
JSON Formatter
Format, validate, and minify JSON with clear error messages.
Color Picker
Pick a color and convert between HEX, RGB, and HSL formats.
Timestamp ConverterNew
Convert Unix timestamps to dates and back. Supports seconds and milliseconds.
Hash GeneratorNew
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text.