URL-encode ASCII
Percent-escape text so it is safe to use in a URL. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use URL-encode ASCII
- 1. Enter the raw text. Paste the plain string you need to put inside a URL: a search phrase, a file name with spaces, or a parameter value containing ampersands and equals signs.
- 2. See unsafe characters escaped. Characters that would break or change the meaning of a URL are replaced with %XX hex escapes, so 'a b&c' becomes 'a%20b%26c'. Letters, digits and a few safe symbols stay as they are.
- 3. Copy the encoded value. Copy the output and splice it into your query string, curl command or API call. Encode each parameter value separately rather than the whole URL, or you will escape the structural characters too.
When to use URL-encode ASCII
URL-encode ASCII prepares arbitrary text for safe transport inside a URL. A single unescaped ampersand silently splits a query parameter in two, and a space breaks the URL outright in many clients. Encoding first eliminates that whole class of bug before the request ever leaves your machine.
- Hand-building a curl request. You are testing an API from the terminal and the search term contains spaces and a plus sign. Encode the value first so curl sends what you typed instead of a mangled query.
- Constructing links with dynamic values. An email template or spreadsheet formula concatenates a customer name into a tracking URL. Pre-encode the sample values to see how names like O'Brien & Sons must appear in the final link.
- Fixing a broken redirect parameter. A returnUrl containing its own query string confuses the outer URL until it is escaped. Encode the inner URL here and paste the safe version into the parameter.
- Preparing filenames for a CDN path. Assets uploaded with spaces and parentheses in their names 404 when referenced literally. Encode each filename to get the exact path segment the CDN expects.
Examples
Escape
Input
a b&c
Output
a%20b%26c
About the URL-encode ASCII tool
URL-encode ASCII runs as plain JavaScript in your browser tab, with no server behind it. Percent-escape text so it is safe to use in a URL. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's ASCII Tools section, 81 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is URL-encode ASCII free to use?
Yes, it is completely free. All 2,658 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. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
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.