Base64 encode and decode

Encode and decode text, files, images and data URIs, right in your browser.

Paste text or drop a file to encode it as Base64, or switch to Decode and paste Base64 or a data URI. URL-safe input is detected automatically, images are previewed, other binary data downloads as a file, and errors show the exact position. Nothing you paste leaves your browser.

Tested with a 60 MB file · Last updated 3 Dec 2026
Shortcuts ⌘↵ run⌘⇧E encode⌘⇧D decode⌘⇧U URL-safe⌘K tools

How it works

Your input goes into a sealed frame on tool.offwire.dev, where a background worker encodes or decodes it. Text is converted as UTF-8, files byte for byte. When decoding, spaces and line breaks are ignored and missing = padding is accepted.

What stays local

Everything. The frame has no network access, and the page around it (with the ads) can’t read what you paste. Only your chosen options are remembered, never the input.

Worked examples

Text beyond ASCII

Encoding “Zoë paid €5 ✓” gives Wm/DqyBwYWlkIOKCrDUg4pyT. Decoding it returns the same text, accents and symbols included.

URL-safe input

PDw_Pz8-Pg uses - and _ and has no padding. Decode recognises the URL-safe alphabet and returns <<???>>.

A broken string

Decoding aGVs*G8= reports that “*” is not a Base64 character, at character 5: line 1, column 5.

Questions

Is Base64 encryption?

No. Base64 only rewrites bytes as text, and anyone can decode it. Don’t treat an encoded password or token as protected.

What is the URL-safe variant?

It uses - and _ in place of + and /, so the result can go in a URL or file name. Offwire leaves off the = padding when encoding this way. When decoding, either alphabet works, but a mix of both is reported as an error.

Why does my text encode differently from a file with the same content?

The text box turns Windows line breaks (CR LF) into single line feeds, and a file may start with a byte order mark. Drop the file itself to encode its exact bytes.

What happens with large input?

The work runs in a background worker, so the page stays usable. Long results are shown only in part, and those over 2,000,000 characters are saved with Download instead of Copy. Typed or pasted text over that size waits for ⌘↵ or the button. How large a file can be depends on your device’s memory.

Changelog · 3 Dec 2026: first release.

↑↓ move · ↵ open · Works on every page