Base64 Encoder/Decoder
Encode text or data to Base64 and decode Base64 strings back to plain text instantly.
📋 How to Use
- Choose Encode or Decode mode from the tab selector.
- For encoding: paste or type text in the input field, or upload a file.
- For decoding: paste the Base64 string into the input field.
- Click Encode or Decode — results appear instantly.
- Copy the output to clipboard or download as a file.
About This Tool
Base64 Encoder & Decoder — Encode and Decode Data Instantly
Base64 is a binary-to-text encoding scheme that represents binary data using only printable ASCII characters. It is fundamental to data transmission in web applications, APIs, email systems, and data storage. Our Base64 Encoder & Decoder handles encoding and decoding for text, URLs, and files with one click.
What Is Base64 Encoding?
Base64 converts binary data to a string of 64 safe ASCII characters (A-Z, a-z, 0-9, +, /) plus = for padding. This makes binary data safe for transmission through text-based protocols that might corrupt binary data:
- Email (MIME): Email attachments are Base64-encoded because email was originally designed for ASCII text only.
- Data URIs: Images and other files embedded in HTML/CSS as
data:URLs. - JWT tokens: JSON Web Tokens use Base64URL encoding for header and payload sections.
- API authentication: Basic HTTP authentication sends credentials as Base64-encoded
username:password. - Binary data in JSON: JSON doesn't support binary — Base64 is used to include images or files in JSON API responses.
- Cookies and sessions: Some web frameworks encode session data in Base64.
Encoder Features
- Text to Base64: Encode any UTF-8 text string to a Base64 representation.
- File to Base64: Upload a file and get its Base64-encoded content.
- URL-safe Base64: Encode using the URL-safe variant (replacing + with - and / with _) for use in URLs and filenames.
- No line wrapping: Standard Base64 wraps at 76 characters; our tool can output the full string without wrapping for programmatic use.
Decoder Features
- Base64 to text: Decode any valid Base64 string back to the original text.
- Base64 to file: Download decoded binary data as a file.
- Auto-detect padding: Handles both padded (with
=) and unpadded Base64 strings. - URL-safe decoding: Automatically handles URL-safe Base64 variants.
Character Set Encoding
All text encoding uses UTF-8 by default, which handles international characters, emoji, and non-ASCII text correctly. The tool correctly encodes Unicode characters like accented letters, CJK characters, and Arabic script.
Security Note
Base64 is encoding, NOT encryption. It provides no security — anyone can decode a Base64 string in seconds. Never use Base64 to store passwords or sensitive data. Use proper encryption (AES, RSA) for security needs.
Encode and decode Base64 now — free, instant, client-side processing.