Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to text. Supports files, URL-safe mode, and live preview. 100% client-side.

URL-safe
Live mode
Type or paste text to encode/decode
0 bytes 0 bytes
Plain Text
Base64 Output

Why developers use this Base64 tool

Instant encode/decode

Live mode converts as you type. No button clicks needed. See results in real-time as you paste or edit text.

🔀

URL-safe mode

Toggle URL-safe Base64 encoding that replaces +/ with -_ and removes padding. Perfect for URLs and filenames.

📄

Swap & compare

One-click swap between input and output. Instantly verify round-trip encoding and decoding accuracy.

🔒

100% client-side

Your data never leaves your browser. Safe for encoding API keys, tokens, credentials, and sensitive configs.

📊

Size analytics

See input/output sizes and the encoding ratio. Understand exactly how much overhead Base64 adds to your data.

📥

Copy & download

Copy encoded/decoded output to clipboard or download as a file. One-click export for any workflow.