Base64 Encoder and Decoder

Encode and decode Base64 online. UTF-8 safe, URL-safe alphabet, MIME line wrapping, data URI output, file to Base64 and image preview for decoded data URIs.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the Base64 Encoder and Decoder

  1. Type text, paste Base64, or pick a file.
  2. Leave direction on auto-detect or choose Encode or Decode.
  3. Copy the result, or download decoded files.

Why use this Base64 Encoder and Decoder

  • Auto-detectRecognises Base64 and data: URIs and decodes them, otherwise encodes.
  • UTF-8 safeEmoji and non-Latin text encode and decode correctly.
  • VariantsStandard or URL-safe alphabet, optional padding, 76-character MIME wrapping and data URI prefix.
  • Files and imagesConvert files to Base64, preview decoded images and download binary results.

Frequently asked questions

How do I decode Base64?

Paste the Base64 string. It is detected and decoded automatically.

What is URL-safe Base64?

It replaces + and / with - and _ so the string can sit in URLs and filenames without escaping.

Can I encode an image to Base64?

Yes. Use "Pick file" and you get a data URI you can paste into HTML or CSS.

Related tools

More Developer Tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.