Base64 Encode / Decode

Encode text or files to Base64 and decode Base64 back to text or bytes — with a URL-safe option, entirely in your browser.

Read the guide: How to Encode and Decode Base64
Text
Base64

How it works

  1. 1

    Choose a mode

    Switch between Encode and Decode, and toggle URL-safe output if you need it.

  2. 2

    Enter your data

    Type or paste text, or upload a file to encode its bytes to Base64.

  3. 3

    Copy the result

    Copy the output, or download decoded bytes as a file.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

What is URL-safe Base64?
A variant that replaces "+" and "/" with "-" and "_" and drops padding, so the string is safe to use in URLs and filenames.
Can I encode files, not just text?
Yes. Upload any file and its raw bytes are encoded to Base64. When decoding, you can download the result back to a binary file.
Does it handle Unicode and emoji?
Yes. Text is encoded as UTF-8 before Base64, so accented characters and emoji round-trip correctly.
Is my data sent to a server?
No. Everything runs locally in your browser using JavaScript and WebAssembly. Your input never leaves your device, nothing is uploaded, and nothing is logged or stored.