Base64 to ASCII Decoder
Decode Base64 encoded text back to ASCII online. Supports URL-safe and strict validation modes.
Paste a Base64 string and the decoded ASCII drops into the right pane — flip on URL-safe mode for JWT tokens or strict mode to catch malformed input instead of silently skipping over it. And everything runs in your browser. Nothing gets uploaded.
How to Use
Paste your Base64 string in the left panel. You can type, paste, or click Sample for example data.
Enable URL-safe mode to automatically convert URL-safe characters (- and _) back to standard Base64 (+ and /).
Enable Strict mode to reject input containing characters that are not valid in Base64 encoding.
Copy, Download, or Swap the result. Swap encodes the ASCII output back to Base64.
Frequently Asked Questions
What is Base64 encoding and why would I need to decode it?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It is widely used to embed binary data in text-based formats such as emails (MIME), JSON payloads, data URIs in HTML/CSS, and API responses. Decoding Base64 converts it back to the original readable ASCII text or binary content.
What is URL-safe Base64 and when should I enable it?
URL-safe Base64 replaces the standard + and / characters with - and _ respectively, because + and / have special meanings in URLs and file paths. If your Base64 string came from a URL parameter, a JWT token, or a filename-safe context, enable URL-safe mode so the tool automatically converts these characters before decoding.
What does strict mode do?
Strict mode validates the input before decoding. It checks that the Base64 string contains only valid characters (A-Z, a-z, 0-9, +, /, and = for padding) and that the length is valid (a multiple of 4 after padding). If the input contains whitespace, line breaks, or invalid characters, strict mode will report an error instead of silently ignoring them. This is useful for catching corrupted or malformed data.
Why does my Base64 string fail to decode?
Common reasons include: the string contains URL-safe characters (try enabling URL-safe mode), the string has been truncated or corrupted, there are invisible characters or extra whitespace, or the original data was not ASCII text but binary data (like an image or PDF). The tool strips whitespace by default in non-strict mode to handle copy-paste issues with line breaks.
Is my data safe when using this tool?
Yes. This tool runs entirely in your browser using JavaScript. Your Base64 data is never sent to any server. All encoding and decoding happens locally on your device, making it safe for sensitive data like API keys, tokens, or private content. You can verify this by using the tool offline after the page loads.