MALFEN

Developer ToolsNewRuns in your browser

Base64 Encoder & Decoder

Encode text and files to Base64, or decode Base64 back to the original.

Loading tool…

About Base64 Encoder & Decoder

Base64 turns arbitrary binary data into plain text so it can travel through systems that only handle text — data URLs, JSON payloads, email attachments, config files. Encode a string or a whole file, or paste Base64 back in to decode it. Unicode is handled correctly, and files are converted locally without being uploaded. Worth knowing before you embed one: Base64 makes data roughly a third larger, so a data URL is a good fit for a small icon and a poor one for a photograph.

How to use Base64 Encoder & Decoder

  1. 01

    Choose a direction

    Switch between Encode and Decode at the top of the tool.

  2. 02

    Add your input

    Type or paste text, or upload a file to encode. For decoding, paste the Base64 string.

  3. 03

    Copy or download

    The result appears immediately. Copy it, or download it as a file when decoding binary data.

Features

  • Encode and decode in one place with instant switching
  • Correct handling of Unicode, emoji and accented characters
  • Encode any file, including images, to Base64
  • Produce a ready-to-use data URL for images
  • URL-safe Base64 variant
  • Copy the result or download it as a file

Frequently asked questions

Everything people ask about the Base64 Encoder & Decoder.

No, and this matters: Base64 is an encoding, not a cipher. Anyone can decode it in seconds. Never use it to protect passwords, tokens or personal data.

Base64 represents every 3 bytes as 4 characters, so output is about 33% larger. That is the price of making binary data safe to send as text.

A data URL embeds a file directly in a document — `data:image/png;base64,...` puts an entire image inside your HTML or CSS with no separate request. Handy for small icons; wasteful for large images.

Usually the string was truncated, contains line breaks or spaces from copying, or is URL-safe Base64 (using `-` and `_`) being decoded as standard. Switch on the URL-safe option and try again.

Yes. Text is converted to UTF-8 before encoding, so emoji and non-Latin scripts round-trip exactly — a common failure point in naive implementations.

Yes, completely. There is no account to create, no trial that expires, no watermark on the output and no feature held back behind a paywall. The site is supported by unobtrusive advertising, not by charging you.

No. Base64 Encoder & Decoder runs entirely inside your browser, so your files never leaves your device. You can confirm this by opening your browser's network tab — there is no upload request.

Yes. Because processing happens locally, there is no copy of your data on any server to leak, subpoena or lose. Nothing is logged and nothing is stored.

Yes. The interface is built mobile-first, with touch-friendly controls and layouts that adapt to small screens. Everything that works on a desktop works on a phone.

Once the page has loaded, yes. All processing is local, so you can carry on working if your connection drops.

Any current version of Chrome, Edge, Firefox, Safari or Opera, on desktop and mobile. If something behaves oddly, updating your browser resolves it in almost every case.

There is no server-side limit because nothing is uploaded. Files up to about 25 MB are comfortable on a typical device; beyond that, processing speed depends on your machine's memory.

Yes. Whatever you produce here is yours — use it in client work, products, packaging or publications. There is no watermark, no licence to accept and no attribution required.

No. There is nothing to keep: your data is never transmitted, and it is cleared from memory as soon as you close or reload the page.