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
Use Cases: When This Tool Helps
-
Embed small files in code
Encode icons, fonts, or certificates as Base64 to include them directly in HTML, CSS, or JSON.
Read the guide → -
Debug email attachments
Decode Base64 parts of raw emails to see what an attachment or message really contains.
-
Work with API authentication
Build or inspect Basic Auth headers that use Base64-encoded username:password.
-
Read encoded config values
Decode Kubernetes secrets and environment values stored in Base64.
-
Pass data safely in URLs
Use URL-safe Base64 to send binary or special-character data in links and cookies.
-
Investigate suspicious scripts
Security analysts can decode Base64 strings hidden in malware or phishing pages.
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.