Base64 Encoder / Decoder
Encode plain text to Base64 or decode Base64 back to text — all in your browser.
Convert plain text or binary data to Base64 encoding and decode Base64 strings back to readable text in seconds. Widely used by developers for embedding images in CSS, encoding API credentials, and handling binary data in JSON payloads.
Features of the Base64 Tool
How to Use the Base64 Encoder & Decoder
- Select 'Encode' or 'Decode' mode using the toggle.
- Paste your text or Base64 string into the input field.
- The result appears instantly in the output area.
- Click 'Copy' to copy the result to your clipboard.
FAQ
What is Base64 encoding used for?▾
Base64 is used to encode binary data as ASCII text, commonly for email attachments, data URIs in HTML/CSS, and API authentication headers.
Is Base64 encryption?▾
No. Base64 is encoding, not encryption. It is easily reversible and provides no security by itself.
What is URL-safe Base64?▾
URL-safe Base64 replaces + with - and / with _ so the encoded string can be safely included in URLs without percent-encoding.
Does this tool work with binary files?▾
You can encode small text-based files. For large binary files, a local tool or command-line base64 utility is recommended.
Base64 Developer Use Cases
- Embed small images as data URIs in CSS to eliminate extra HTTP requests.
- Encode username:password for HTTP Basic Authentication headers.
- Store binary configuration data in JSON or YAML config files.
- JWT tokens use Base64url encoding for header and payload sections.
- Linux/macOS: use `base64 -d` in the terminal to decode Base64 from the command line.