Validate ASCII
Check whether text contains only 7-bit ASCII characters. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Check whether text contains only 7-bit ASCII characters.
Type or paste above to see the result here.
What you paste never leaves this tab
Validate ASCII is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Validate ASCII
- 1. Paste the text to check. Drop the string into the input pane: a config value, a filename, a CSV cell. The check runs against every character, not just the ones you can see, and updates as you edit.
- 2. Read the verdict. Pure ASCII means every character falls in 0-127. Otherwise the verdict says how many characters are outside that range, each one is highlighted in your text, and a list gives its code point, UTF-8 size, line and column.
- 3. Flag control characters too. Tick Also flag control characters to catch invisible codes 0-31 and 127 as well; tab and line breaks are still allowed.
- 4. Clean it. Turn on Clean it to swap each offender for its closest ASCII match, so naïve becomes naive and an ellipsis becomes three dots. Copy the cleaned text from the output pane.
When to use Validate ASCII
Validate ASCII tells you definitively whether a string is pure 7-bit ASCII. Plenty of systems still require it: SMTP headers, some legacy APIs, identifier rules in older toolchains. The failures they produce rarely mention encoding, so being able to prove or rule out a stray non-ASCII character saves real debugging time.
- Hunting the character that broke a build. A YAML file or shell script fails with a cryptic syntax error after someone pasted from a Word doc. Validate the suspicious lines to confirm a curly quote or non-breaking space is the culprit.
- Pre-flighting data for a legacy system. An EDI feed or AS/400 integration rejects anything outside 7-bit ASCII. Check exported field values before transmission instead of discovering the failure in the partner's error report.
- Enforcing ASCII-only identifiers. Package names, env var keys and DNS hostnames commonly disallow Unicode. Validate a proposed name up front so the registry or resolver never gets the chance to reject it.
- Auditing copy-pasted credentials. An API key pasted from a chat app mysteriously fails authentication. Validating it reveals whether an invisible zero-width character or smart punctuation hitched a ride during the copy.
Examples
Valid
Input
Plain old ASCII.
Output
Pure ASCII: 16 characters.
Accents and an ellipsis
Input
naïve café … test
Output
Not pure ASCII: 3 characters outside 0-127.
Clean it
Input
naïve café … test
Output
naive cafe ... test
About the Validate ASCII tool
Validate ASCII does its work locally, right in the browser. Check whether text contains only 7-bit ASCII characters. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the ASCII Tools collection on EditSafely, a set of 81 small, focused ASCII utilities that share the same instant, private workspace.
You can shape the output with 2 settings, including Also flag control characters and Clean it, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Validate ASCII free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All ASCII Tools →Convert Unicode to ASCII
Make any text plain ASCII, or decode U+XXXX code points.
Debug ASCII Data
Inspect each character's code in decimal, hex and binary.
Remove Diacritics from Text
Strip accents from Latin letters, so café and Łódź read cafe and Lodz.
Find ASCII Length
Count the characters (code points) in the input.