- 100% Free · No Sign-up Required
Base64 Encoder & Decoder
Encode or decode text, URLs, files & images to Base64 instantly. 100% browser-based — your data never leaves your device.
image.jpg
Common Uses
Embed Images in HTML/CSS
Convert images to Base64 to embed directly in HTML or CSS — no separate image file needed.
API Authentication
Encode credentials for HTTP Basic Auth headers in API requests and REST integrations.
Email Attachments
MIME email protocol uses Base64 to encode file attachments for safe text-based transmission.
JWT Tokens
JWT tokens use URL-safe Base64 encoding. Decode any JWT payload to inspect claims instantly.
Data URIs
Use Base64-encoded images as data URIs in src attributes to reduce HTTP requests on web pages.
Config Files
Store binary data or special characters safely in JSON, YAML and environment variable config files.
How to Use the Base64 Encoder Decoder
Convert text to Base64 format or decode Base64 strings back into readable text quickly and securely using this free online tool.
Choose Mode
Select "Encode to Base64" to convert plain text, or "Decode from Base64" to get the original text back.
Select Type
Pick Text, URL, Image→Base64, Base64→Image, or File depending on what you want to process.
Set Options
Toggle URL-safe mode for JWT/URLs, or enable line wrapping at 64/76 chars for MIME/PEM format.
Copy or Download
Copy the output to clipboard or download as a .txt file. For images, copy as data URI or raw Base64.