What is Base64 Encoder / Decoder?
Base64 Encoder / Decoder converts data between its raw form and Base64 encoding, a scheme that represents binary data using 64 ASCII characters. Base64 is everywhere in software development: email attachments (MIME), data URIs in HTML, JWT token segments, API authentication headers, and configuration values in YAML and JSON files.
The tool handles both standard Base64 (RFC 4648) with the +/ character set and URL-safe Base64 with -_ characters that avoids issues in URLs and filenames. Whether you need to encode a string for an Authorization header or decode a mysterious Base64 blob from a config file, this tool provides instant conversion.
How to Use Base64 Encoder / Decoder
Type or paste your input and select the operation. For encoding, enter plain text and the tool produces the Base64 representation. For decoding, paste a Base64 string and the tool reveals the original content. Conversion happens in real time as you type.
The tool correctly handles UTF-8 encoded text, so international characters, emoji, and multibyte strings are encoded and decoded accurately. Line wrapping options let you produce 76-character wrapped output for MIME compatibility or single-line output for compact embedding.
Common Use Cases
- API authentication: Encode credentials for HTTP Basic Authentication headers, which require Base64-encoded
username:passwordstrings. - JWT inspection: Decode individual segments of JWT tokens to quickly check header algorithms and payload claims without a full JWT tool.
- Data URI creation: Encode small files or text for embedding in CSS, HTML, or configuration files as data URIs.
- Email debugging: Decode Base64-encoded email body content and attachments when troubleshooting SMTP or MIME issues.
- Configuration values: Decode Base64-encoded secrets in Kubernetes secrets, Docker configs, or environment variables.