How to Decode a Base64 String
- Paste your Base64 string — Paste the encoded text into the input field. With Live mode on, decoding happens instantly.
- Choose your options — Enable URL-safe decoding if your string uses
-and_instead of+and/(common in JWT tokens and URL parameters). Use line-by-line mode to decode multiple values at once. - Copy or download — Copy the decoded output or download it as a .txt file.
How to Decode a Base64 File String
- Switch to the File tab — Click the File tab above the tool.
- Paste the Base64 string — Paste your encoded string, with or without the data URI prefix (
data:image/png;base64,...). The tool detects the file type automatically. - Decode and download — Click “Decode & Download File.” For images, a preview is shown before the file downloads automatically.
What is Base64 Decoding?
Base64 decoding reverses the encoding process — it converts a Base64 string back into its original binary data or text. No key or password is required. Base64 is an encoding scheme, not encryption, so decoding is straightforward: the encoded characters map directly back to the original bytes.
You’ll encounter Base64-encoded data in JWT tokens, email headers, API responses, HTML data URIs, and configuration files. This tool lets you instantly inspect what’s inside any Base64 string.
What is URL-Safe Base64?
URL-safe Base64 (Base64URL) replaces the standard + with - and / with _ to avoid conflicts with URL syntax. It’s commonly used in JWT tokens, OAuth access tokens, and any Base64 data embedded in URLs. Enable the URL-safe decoding option when you receive a “invalid Base64” error — your string likely uses URL-safe encoding.
Common Uses for Base64 Decoding
- Inspect JWT tokens — Decode the header and payload sections to read the claims inside
- Read API responses — Decode Base64-encoded data fields returned by REST APIs
- Extract embedded images — Convert data URI strings back to downloadable image files
- Debug email headers — Decode MIME-encoded subjects and attachment names
- Decode configuration values — Read Base64-encoded secrets from environment variables or config files