Base64 Encoder & Decoder
Encode text or decode Base64 strings instantly in your browser.
About Base64 Encoding
Base64 is an encoding scheme that represents binary data as ASCII text using 64 printable characters. It's commonly used to transfer data over media that are designed to deal with textual data. This ensures that the data remains intact without modification during transport.
Common Use Cases
- Data URIs: Embedding small images or fonts directly into CSS and HTML files as text, reducing HTTP requests.
- Email Attachments: The MIME specification uses Base64 to convert binary attachments (like PDFs and JPEGs) into text so they can be sent safely via SMTP.
- Web APIs: Safely transmitting JSON Web Tokens (JWTs) and Basic Authentication headers in HTTP requests.
How to Encode Base64
Enter your plain text string into the input box. The tool instantly converts the string into a Base64 encoded format. You can easily copy or download the result as a text file.
Free & Secure In-Browser Encoding
Because Base64 encoding is frequently used for authentication tokens, uploading that data to a remote server is a major security risk. This ByteBox utility relies on standard Web APIs to encode and decode directly within your browser cache.