Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 strings instantly in your browser.
0 characters
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into a string of ASCII characters. It's widely used to encode data that needs to be transmitted over text-based protocols like HTTP or stored in text-based formats like JSON and XML. Base64 represents binary data using 64 printable characters (A–Z, a–z, 0–9, +, /).
How to Use This Tool
- 1.Select Encode or Decode mode using the toggle.
- 2.Type or paste your text into the left input box.
- 3.The result appears instantly on the right.
- 4.Click Copy to copy the output to your clipboard.
Common Use Cases
API Authentication
Encoding credentials in Basic Auth headers (username:password → Base64).
Data URLs
Embedding images directly in HTML or CSS as data:image/png;base64,... strings.
Email Attachments
MIME encoding for email attachments and non-ASCII content in emails.
JWT Tokens
JSON Web Tokens use Base64url encoding for their header and payload sections.
Config Storage
Encoding binary config files or certificates for storage in JSON/YAML config files.
URL-safe Data
Passing binary or structured data safely through URL query parameters.
Frequently Asked Questions
Is Base64 encryption?
No. Base64 is an encoding scheme, not encryption. It's easily reversible and provides no security. Don't use it to hide sensitive data.
Why does Base64 output end with == or =?
Base64 pads its output to ensure the total length is a multiple of 4. The = characters are padding and are part of the specification.
Does this tool work offline?
Yes! All encoding and decoding happens entirely in your browser using JavaScript. No data is sent to any server.
What's the difference between Base64 and Base64url?
Base64url replaces + with - and / with _ to make the output safe for use in URLs without percent-encoding.