Development Tools
Base64 Encoder and Decoder
Encode text or a file to Base64, or decode Base64 back to readable text or a downloadable file. It handles UTF-8 characters correctly, accepts the URL-safe alphabet and data: URIs, forgives missing padding and tells you exactly where invalid input goes wrong. Decoded images are previewed. Base64 is an encoding, not encryption, so it hides nothing. Everything runs in your browser and nothing is uploaded.

How to use it
- Choose Encode or Decode and paste your text, or open a file to encode it.
- Tick URL-safe, remove padding or wrap lines at 76 characters if the receiving system needs it.
- Copy the result, or download decoded binary data such as an image or PDF.
Example
The text “Café ☕” encodes to Q2Fmw6kg4piV. Decoding that string returns the original text, accents and symbol included, because the tool reads and writes UTF-8.
When developers and SEOs use Base64
- Data URIs: small icons embedded directly in CSS or HTML to save a request. Large images are better served as normal files.
- Email and API payloads: binary attachments carried inside text formats such as JSON or MIME.
- Tokens and headers: HTTP Basic authentication and JWT parts use Base64 or its URL-safe variant. See also the JWT decoder.
Which tool fits your task?
This page is for Base64 encoding and decoding.
- URL Encoder / Decoder: for percent-encoding for web addresses, not Base64 encoding and decoding.
- Online MD5 Generator: for checksums for text and files, not Base64 encoding and decoding.
- JWT Decoder: for reading a JSON Web Token, not Base64 encoding and decoding.
- UUID Generator: for generating unique identifiers, not Base64 encoding and decoding.
Questions
Is Base64 a way to keep data secret?
No. Base64 only changes how bytes are written, using 64 printable characters. Anyone can reverse it in a second, so it must never be used to protect passwords, tokens or personal data.
What is URL-safe Base64?
Standard Base64 uses + and /, which have special meaning in URLs. The URL-safe form uses - and _ instead and often drops the = padding. The decoder accepts both and tells you which it read.
Why does encoded data get bigger?
Every three bytes become four characters, so the output is about 33% larger than the input, a little more when line breaks are added.
Can it decode an image from a data URI?
Yes. Paste the whole data:image/png;base64,… string or just the Base64 part. If the decoded bytes look like an image, a preview is shown and you can download the file.
Is my text or file uploaded?
No. The conversion happens in your browser. Files up to 25 MB can be encoded.
Get practical SEO tips by email
Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.