Ad placeholder

Base64 Encode/Decode

Encode plain text to Base64 or decode Base64 back to text. Everything runs locally in your browser.

If decoding fails, the input may not be valid Base64.

About Base64

Base64 is a way to represent binary or special characters as plain text. It’s commonly used in APIs, JWTs, email content, and data URIs.

This tool encodes and decodes locally in your browser, so your input stays on your device and is not uploaded by this tool.

FAQ

Why does decoding fail?

The input may not be valid Base64 (missing padding, invalid characters, or copied with extra spaces/newlines). Try cleaning the input first.

Is this URL-safe Base64?

This tool targets standard Base64. URL-safe variants replace certain characters; convert those characters if needed.

Does encoding keep my line breaks?

The output is produced as a single Base64 string. Decoding restores the original text content.

Can I use it for files?

This tool is designed for text. For files, you’ll typically want a dedicated file-to-Base64 encoder.

Is my data stored anywhere?

No. Everything runs locally in your browser and nothing is uploaded by this tool.

More text tools

Ad placeholder