Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to embed images in HTML/CSS, transmit binary data over text-based protocols, and encode data in URLs.
Data URIs
Embed images directly in HTML or CSS
Email Attachments
Encode binary files for email transmission
Storage
Store complex data in cookies or localStorage
API Payloads
Transmit binary data in JSON payloads
How do I encode to Base64?
Paste your text or upload a file and click 'Encode'. The tool converts your content to Base64 format instantly.
How do I decode Base64?
Paste your Base64 string and click 'Decode'. The tool converts it back to the original text or file.
What is Base64 encoding used for?
Base64 is commonly used for embedding images in HTML/CSS, transmitting binary data in JSON/XML, email attachments (MIME), and basic authentication headers.
Can I encode files to Base64?
Yes! Upload any file (images, PDFs, documents) and the tool will convert it to Base64. Perfect for data URIs in web development.
Does this support UTF-8 and special characters?
Yes, the tool properly handles UTF-8 encoding, including emojis and special characters from any language.
Privacy First
All encoding and decoding happens in your browser. Your data never leaves your device.
Free online JSON formatter, validator, and beautifier. Format, minify, validate, and prettify JSON data instantly. No signup required. Works offline in your browser.
Convert JavaScript object literals to valid JSON
Free online JSON merge tool. Combine two JSON objects with deep or shallow merge strategies. Perfect for config files, API responses, and data manipulation.