Base64 Encoder / Decoder

Encode text, files or images to Base64 and decode Base64 back — binary data handled correctly.

Loading the tool…

How to use the Base64 Encoder / Decoder

  1. Choose to encode or decode.
  2. Paste your text, or upload a file.
  3. Toggle URL-safe output if you need it.
  4. Copy the result, or tap Decode & Download as File.

About this tool

Encode text or files to Base64 and decode Base64 back to text or a downloadable file. Switch on URL-safe Base64 for tokens and query strings, or turn a file into a data URL to embed a small image directly in HTML or CSS. Paste a Base64 string to see what's inside, or use Decode & Download as File to get the original file back (paste a data: URL to keep its file type).

Developers use it for API payloads, email attachments and config values. Encoding and decoding run in your browser, so keys and files never leave your device.

Why OmneKit

  • Private: text and files are processed on your device.
  • Free, with no sign-up.
  • Works with files as well as text, including data URLs.

Frequently asked questions

What is Base64 encoding and why is it used?

Base64 is a binary-to-text encoding scheme that converts binary data into an ASCII string. It is commonly used for embedding images inside CSS or HTML, transmitting binary data over text-based protocols like email (MIME), and storing complex data inside JSON or XML documents.

Is my data safe when using this tool?

Absolutely. All encoding and decoding happens entirely inside your browser using JavaScript. No data is transmitted to any server — your files, text, and images remain 100% private and local on your device.

What is URL-Safe Base64?

Standard Base64 uses the characters + and / which have special meaning in URLs. URL-Safe Base64 replaces + with - and / with _ to make the encoded string safe for use in URLs and query parameters without additional percent-encoding.

Can I encode large files?

Yes, the tool reads files into memory using the browser FileReader API. However, very large files (over 100MB) may cause the browser tab to slow down due to memory constraints. For most practical use cases like images, documents, and config files, encoding is instant.

  • Files stay on your device
  • Free, no sign-up
  • No upload wait
  • Works on phone & desktop