Encoding & Decoding

Base64 Encoder & Decoder

Encode and decode Base64 or Base64URL instantly with smart detection, previews, and clean copy or download actions.

Encode text or files as Base64 and decode Base64 or Base64URL back into readable content.

Mode
Variant

0 characters

Output appears instantly as you type

Auto mode decodes valid Base64 and encodes everything else.

AI Assist

Explain This

5 of 5 free AI explanations left today.

Paste text, Base64, or a file to get a short explanation of the variant, decoded content, and likely issues.
Advanced options
Encoded output format
javascript
// Text → Base64
const encoded = btoa('Hello world');

// Base64 → text
const decoded = atob('SGVsbG8gd29ybGQ=');

// Node.js / Buffer
const b64 = Buffer.from('Hello world', 'utf8').toString('base64');
const text = Buffer.from(b64, 'base64').toString('utf8');

What is this tool?

Base64 Encoder & Decoder helps developers encode and decode Base64 text, JWT-style Base64URL payloads, and binary content instantly. It is especially useful for inspecting encoded payloads, working with inline files, normalizing JWT-style Base64URL strings.

How to use it

Paste or enter your base64 encode decode input.
Adjust the mode, options, or sample values for the exact workflow you need.
Review the output, copy the result, and move back into your app or request.

Example

Input
SGVsbG8gd29ybGQ=
Output
Hello world

The tool decodes standard Base64 and can switch to Base64URL when the input comes from a token or URL-safe payload.

Related Tools

Frequently Asked Questions

Base64 Encoder & Decoder helps developers encode and decode Base64 text, JWT-style Base64URL payloads, and binary content instantly. It is built for common workflows like inspecting encoded payloads and working with inline files.

Use it when you need a fast answer while debugging, building payloads, or validating output. Typical workflows include inspecting encoded payloads, working with inline files, normalizing JWT-style Base64URL strings.

Yes. The tool is designed for fast, lightweight workflows without sign-up or heavy UI. Most processing happens instantly in the browser.