All encoding and decoding happens entirely in your browser. No data is sent to any server.

About This Tool

Base64 is an encoding scheme that converts binary data into a string of 64 printable ASCII characters. It is widely used to embed binary data (images, files) in text-based formats like JSON, HTML, CSS, and email (MIME). This tool encodes plain text or file contents to Base64 and decodes Base64 strings back to readable text all in your browser using the native btoa() and atob() functions. It also supports the URL-safe Base64 variant (using - and _ instead of + and /).

How to Use

  1. Select Encode or Decode mode using the toggle.
  2. Type or paste your text into the input field.
  3. The result updates instantly. Click Copy to copy to clipboard.
  4. To encode a file, use the file upload option the file content is converted to a Base64 data URI.

Frequently Asked Questions

Is Base64 the same as encryption?

No. Base64 is an encoding scheme, not encryption. It converts data to a different format but provides no confidentiality anyone can decode a Base64 string without a key. Do not use Base64 to "hide" sensitive data.

What is URL-safe Base64?

Standard Base64 uses + and / which have special meanings in URLs. URL-safe Base64 replaces them with - and _. It's used in JWTs, OAuth tokens, and anywhere Base64 appears in a URL or filename.

Why does Base64 output end in = signs?

Base64 encodes every 3 bytes of input into 4 characters. If the input length isn't a multiple of 3, padding characters (= or ==) are added to make it so. Some implementations omit padding both forms decode identically.