Base64 Converter
Encode or decode text, images and files to and from Base64.
How to use
- 1
Input
Type text or select a file.
- 2
Convert
Encode or decode.
- 3
Copy
Copy or download the result.
Features
- Encode and decode text and files
- Convert images and PDFs to Base64
- Secure processing entirely in your browser
- Copy or download results
Use cases
Encode credentials
Encode authentication information into Base64 format for API calls.
Embed images in HTML
Convert images to Base64 data URIs for embedding directly in HTML or CSS.
Convert data for APIs
Encode or decode Base64 payloads during API development.
Details
Base64 is an encoding scheme that converts binary data into text. It is used in email attachments, authentication headers, and data URIs for embedding images.
You can encode text, images, PDFs and other files to Base64. The result can be copied or downloaded for immediate use.
The decode function restores Base64-encoded data to its original text or file form. Useful for debugging and analyzing data URIs during development.
FAQ
What is Base64?
An encoding scheme that converts binary data into text. It lets you handle binary data in text-based mediums like email and JSON.
Can I embed images in HTML?
Yes. Encode the image to Base64 and use the data:image/png;base64, format in an img src attribute.
Can it handle large files?
It depends on your browser memory. Files up to a few MB are handled without issues.
Related Tools
JSON Formatter
Format, minify, validate and unescape JSON right in your browser.
UUID Generator
Generate UUIDs (v4) in bulk for free. Handy for API development and test data.
Unix Timestamp Converter
Convert between Unix timestamps and dates. Grab the current timestamp with one click.
All processing happens in your browser. Your files are never uploaded.