← All developer tools

Base64 Encode/Decode

Encode & decode

Paste text, drop a file for a data URI, or decode Base64 — all with live results in your browser.

Runs in your browser. Inputs stay on this device — nothing is uploaded to BrowserSpaces for processing.

Text & files

Encode strings or any file to Base64 / data URI.

URL-safe

Use - and _ instead of + and /.

Wrap

Optional 76-column wrapping.

Swap

Round-trip encode ↔ decode.

Use the tool

Browser Base64 APIs

Text uses TextEncoder with binary-safe Base64. Files become data: URIs with the detected MIME type.

Three steps

  1. 1

    Enter input

    Text, Base64, or a file.

  2. 2

    Choose mode

    Encode or decode, plus options.

  3. 3

    Copy

    Clipboard or download.