Base64 Decoder
Paste a Base64 string and decode it to plain text instantly — supports standard and URL-safe alphabets, auto-padding, and Unicode.
Paste a Base64 string and the decoded text appears as you type: SGVsbG8sIFdvcmxkIQ== decodes to Hello, World!.
Use the Base64 Decoder
Base64 Input
Decoded Output
Quick answer
Paste a Base64 string and the decoded text appears as you type: SGVsbG8sIFdvcmxkIQ== decodes to Hello, World!. URL-safe strings that use - and _ and strings with the = padding missing decode too. Decoding runs in your browser, so tokens and passwords never leave your device.
Examples
| Base64 input | Decoded text |
|---|---|
| SGVsbG8sIFdvcmxkIQ== | Hello, World! |
| SGk= | Hi |
| dXNlcjpwYXNz | user:pass |
| eyJhbGciOiJIUzI1NiJ9 | {"alg":"HS256"} |
| Y2Fmw6k (padding missing) | café |
Paste a Base64 string to decode it.
Summary
This tool decodes Base64-encoded strings back to plain text, running entirely in your browser with no data sent to any server. It supports both the standard Base64 alphabet (RFC 4648) and the URL-safe variant that uses - and _ instead of + and /. Missing padding characters are added automatically, and Unicode output is handled correctly via the TextDecoder API. An encode toggle lets you go the other direction without leaving the page.
How it works
- Select the Decode or Encode tab.
- Paste your Base64 string (or plain text) into the input field.
- Choose Standard or URL-safe alphabet if needed.
- The decoded (or encoded) result updates instantly.
- Click Copy to copy the result to your clipboard.
- The output character count is shown below the result area.
Use cases
- Decode Base64-encoded JWT payload or header to inspect the claims.
- Decode Basic Auth header values (user:password) from HTTP logs.
- Decode Base64 email attachments or MIME parts.
- Convert URL-safe Base64 tokens used in OAuth and PKCE flows.
- Decode Base64-encoded environment variables or configuration values.
- Verify that a Base64 string encodes the expected data.
- Decode Base64 data URIs embedded in HTML or CSS.
- Decode Base64-encoded API responses or webhook payloads.