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.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Percent-escape text so it is safe to use in a URL.
Type or paste above to see the result here.
What you paste never leaves this tab
URL-encode 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 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. Say what the text is. Value escapes everything that could change a URL, so 'a b&c' becomes 'a%20b%26c'. Whole URL keeps the : / ? & = # that give a link its shape. Form writes spaces as + the way HTML forms send them. A count shows how many characters were encoded.
- 3. Copy the encoded value. Copy the output and splice it into your query string, curl command or API call. Use Value for each parameter and Whole URL only for a complete link.
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
Value
Input
a b&c=d/é
Output
a%20b%26c%3Dd%2F%C3%A9
Whole URL
Input
https://example.com/a b?q=é
Output
https://example.com/a%20b?q=%C3%A9
Form
Input
a b&c=d/é
Output
a+b%26c%3Dd%2F%C3%A9
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.
You can shape the output with the Encode as setting, and the result refreshes the moment you change it. 4 worked examples further down the page show exactly what the tool produces for real inputs.
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,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.