Base64 Encoder/Decoder
Encode and decode Base64 strings and files
🔒 All processing happens in your browser. Your data stays private.
Free Base64 Encoder and Decoder
Encode and decode Base64 strings and files with our free online tool. Perfect for developers working with data URIs, API tokens, and file conversions.
Features
- Encode text to Base64
- Decode Base64 to text
- Encode files and images to Base64
- Decode Base64 to downloadable files
- URL-safe encoding option
- Image preview for encoded/decoded images
- Copy to clipboard with one click
- 100% client-side processing
What is Base64?
Base64 is an encoding scheme that converts binary data into ASCII text format. It's commonly used to encode images, files, and binary data for transmission over text-based protocols like HTTP and email.
Common Use Cases
- Embed images directly in HTML/CSS using data URIs
- Encode files for API transmission
- Work with authentication tokens
- Convert files for email attachments (MIME)
- Debug and inspect JWT tokens
How to Use Base64 Encoder/Decoder
- 1Choose between 'Text' or 'File' mode depending on what you want to encode/decode
- 2Select 'Encode' to convert to Base64, or 'Decode' to convert from Base64
- 3For text: paste your content in the input area
- 4For files: click or drag to upload your file
- 5Toggle 'URL-safe encoding' if you need Base64 for URLs
- 6Click the action button to process, then copy or download the result
Base64 Examples
Simple Text Encoding
Hello World → SGVsbG8gV29ybGQ=Basic text encoding to Base64 format
URL-Safe Encoding
Uses - and _ instead of + and / for URL compatibilityIdeal for query parameters and URL paths
Data URI for Images
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...Embed images directly in HTML/CSS
Related Tools
URL Encoder/Decoder
Encode and decode URLs for safe transmission
Hash Generator
Generate MD5, SHA-1, SHA-256 hashes
JSON Formatter
Format, validate, and minify JSON
Image Converter
Convert images between different formats
QR Generator
Create QR codes for any content
Password Generator
Generate secure random passwords