Base64 Encoder & Decoder
Encode and decode Base64 or Base64URL instantly with smart detection, previews, and clean copy or download actions.
AI-Readable Summary
Encode text or files as Base64 and decode Base64 or Base64URL back into readable content.
0 characters
Output appears instantly as you type
Auto mode decodes valid Base64 and encodes everything else.
Explain This
5 of 5 free AI explanations left today.
Advanced options
// 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
Example
SGVsbG8gd29ybGQ=Hello worldThe tool decodes standard Base64 and can switch to Base64URL when the input comes from a token or URL-safe payload.
Related Tools
Encode and decode Base64URL payloads for JWTs, signed URLs, and web-safe tokens without standard Base64 character issues.
Decode JWT tokens instantly, inspect header and payload claims, and see expiry details without sending data to a server.
Escape or unescape HTML entities instantly when working with templates, HTML snippets, and copied content.
Format, validate, and minify JSON with instant error hints. Built for API payloads, fixtures, and debugging malformed responses.
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.