Base64 Encoder / Decoder
Plain Text
Base64 Output
Frequently Asked Questions
Is the Base64 Encoder / Decoder free to use?
Yes, completely free. No signup, no account, no hidden charges.
Is my data uploaded to any server?
No. All encoding and decoding happens entirely in your browser using JavaScript's built-in btoa() and atob() functions. Your data never leaves your device.
What is Base64 encoding used for?
Base64 is used to safely transmit binary data (like images or files) as text. Common uses include embedding images in CSS/HTML as data URIs, encoding API tokens and credentials, and transmitting binary data in JSON or XML.
Can I encode images to Base64?
Yes. Upload any image (JPG, PNG, GIF, WEBP) and the tool will generate a Base64 data URI that you can embed directly in HTML or CSS without a separate image file.
What is the difference between Base64 and Base64 URL-safe encoding?
Standard Base64 uses + and / characters which can cause issues in URLs. URL-safe Base64 replaces + with - and / with _ making it safe to use in query parameters and JWT tokens.
Can I decode a Base64 JWT token?
Yes. Paste the payload section of a JWT (the middle part between the dots) and decode it to see the JSON claims. Note: this only decodes — it does not verify the signature.
How to Use Base64 Encoder / Decoder
Select your mode: Text for encoding/decoding plain text, or File/Image for encoding binary files to Base64.
For text: type or paste your text and click Encode to get the Base64 string, or paste a Base64 string and click Decode to get the original text.
For images: upload any image file and the tool generates a complete data URI (data:image/jpeg;base64,...) ready to embed in HTML or CSS.
Click Copy to clipboard to copy the result and use it in your code, API request, or document.