URL-encode Text
Percent-encode text so it's safe 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-encode text so it's safe in a URL.
Type or paste above to see the result here.
What you paste never leaves this tab
URL-encode Text 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 Text
- 1. Paste the text to encode. Paste or type the raw text you want made URL-safe into the input pane. URL-encode Text percent-encodes any character that isn't allowed unescaped in a URL. Under Encode, pick A value to escape everything (for one query parameter) or A full URL to keep : / ? # & = so the link still works.
- 2. Decide how spaces are encoded. Turn on Encode spaces as + to use the older form-encoding convention, or leave it off to encode spaces as %20, which matches how modern browsers encode a URL path.
- 3. Copy the encoded string. Click copy on the output pane and drop the encoded value into a query string, a form submission or anywhere a URL needs a safely escaped parameter.
When to use URL-encode Text
URL-encode Text percent-encodes any character that a URL can't carry safely on its own, from spaces to ampersands to non-ASCII letters. It's the step between raw user input and a value you can actually paste into a URL or query string.
- Building a query string parameter. A search term or filter value with spaces and punctuation needs encoding before it can be appended to a URL as a query parameter without breaking the request.
- Encoding user input before appending to a link. A generated link that embeds a user's comment or search phrase needs that text percent-encoded first, or special characters in it will corrupt the resulting URL entirely.
- Preparing a form-encoded request body. A request sent as application/x-www-form-urlencoded needs each field value percent-encoded, with Encode spaces as + turned on to match that content type's particular space-handling convention exactly.
Examples
Escape a query
Input
a b&c
Output
a%20b%26c
Encode a whole URL
Input
https://example.com/a b?q=café
Output
https://example.com/a%20b?q=caf%C3%A9
About the URL-encode Text tool
URL-encode Text is a free online tool that works entirely inside your web browser. Percent-encode text so it's safe in a URL. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 211 Text utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with 2 settings, including Encode and Encode spaces as +, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.
Frequently asked questions
Is URL-encode Text 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.