Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 strings. Supports Unicode characters.

Encode anything

Examples:
Text to Encode
Base64 Result

About This Tool

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It's commonly used for encoding data in URLs, email attachments, and API payloads. This tool supports Unicode characters and processes everything locally in your browser.

About

About the Base64 Encoder/Decoder

A Base64 Encoder/Decoder converts text and files to and from Base64 — a way of representing binary data using only plain ASCII characters. Reach for it when you need to inline an image into CSS or HTML, embed a file inside a JSON or config payload, decode a JWT segment or an email attachment, or just inspect a Base64 string someone handed you. Everything runs entirely in your browser, so whatever you paste or drop never leaves your device.

How to use the Base64 Encoder/Decoder

  1. 1Pick a direction: Encode (plain text or a file to Base64) or Decode (Base64 back to its original form).
  2. 2Paste or type your text into the input box, or drop a file in to encode it.
  3. 3The converted output appears instantly — no upload and no server round trip.
  4. 4Copy the result, or download it back as a file when you are decoding binary data.
  5. 5Switch directions or clear the field to run another conversion.

Common use cases

  • Inlining a small image or font as a data URI in CSS or HTML to cut an extra request
  • Embedding binary content inside a JSON, YAML, or environment config payload
  • Decoding the payload segment of a JWT or an API token to inspect its contents
  • Reading or generating Base64-encoded email attachments (MIME)
  • Quickly checking or converting a Base64 string while debugging an API response

Frequently asked questions

What is Base64 encoding?

Base64 represents binary data as a string of 64 ASCII characters (A–Z, a–z, 0–9, plus + and /, with = for padding). It lets you safely move or store binary content inside text-only contexts like JSON, HTML, CSS, URLs, and email.

Is Base64 the same as encryption?

No. Base64 is encoding, not encryption — it provides no security or secrecy. Anyone can decode it back to the original instantly, so never use it to protect sensitive data; use it only for transport and formatting.

Is my data private and safe here?

Yes. This tool runs 100% in your browser. Whatever you paste, type, or drop is processed locally on your device — nothing is uploaded, sent to a server, stored, or tracked.

Can I encode and decode files, not just text?

Yes. You can encode a file into a Base64 string (handy for data URIs and embedding) and decode a Base64 string back into the original file to download. Because the work happens in your browser, very large files use more time and memory.

Is this Base64 tool free to use?

Yes, it is completely free to use with no sign-up required, and it works the same for both encoding and decoding.

Your data never leaves your browser • No cookies • Works offline after your first visit

Press ? for keyboard shortcuts

We use minimal, privacy-focused cookies to improve your experience. Our developer tools process all data locally — we never store your content. Learn more