Base64 Encoder & Decoder

A unicode-safe Base64 tool with URL-safe output, byte-accurate file encoding, and clear errors for invalid input.

Developer Tools Encoding & Security Runs locally No sign-up

Base64 encoder & decoder

URL-safe output

The decoder always accepts both standard and URL-safe Base64.

Input —
Output —
Bytes —
Examples

Text is encoded as UTF-8 before Base64, so accents, CJK characters, and emoji round-trip correctly. Invalid lengths, characters, and padding are reported explicitly.

Encode a file

Max 25 MB

The file is read in this tab only. Its contents are never uploaded.

File —
Size —
Base64 output —

About Base64 Encoder & Decoder

Encode text or files to Base64 and decode Base64 back to text or bytes.

This tool runs locally in your browser. It does not upload your input, require an account, or store your data on a server. If a feature needs a network request, the interface asks before sending anything.

base64 encoderbase64 decoderbase64 fileurl safe base64

Search tools

↑ ↓ navigate Enter open Esc close