Examples
Simple Text
Original:
Hello, World!
Base64:
SGVsbG8sIFdvcmxkIQ==
Special Characters
Original:
café résumé 日本語
Base64:
Y2Fmw6kgcsOpc3Vtw6kgaOaZpeadpeiQkg==
JSON Data
Original:
{"name":"John","age":30}
Base64:
eyJuYW1lIjoiSm9obiIsImFnZSI6MzB9
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data as printable ASCII characters. It's commonly used for encoding data in email, web development, and data storage.
Common Use Cases:
- • Embedding images in HTML/CSS (data URIs)
- • Encoding binary data for JSON APIs
- • Email attachments and MIME encoding
- • Storing binary data in text-based formats
- • Authentication tokens and API keys
Features:
- • Supports both text and file encoding/decoding
- • Real-time encoding for text input
- • Image preview for encoded image files
- • Automatic file download for decoded files
- • UTF-8 text handling
Note:
Base64 encoding increases data size by approximately 33%. It's not encryption - encoded data can be easily decoded by anyone.