Encoding a query value
Type "hello world!" with Mode set to Query value to get hello%20world! — the space becomes %20 while the exclamation mark, which encodeURIComponent doesn't need to escape, stays as-is.
URL encode text online with percent-encoding for query strings and links — free and instant.
About
Percent-encodes text so it's safe to use inside a URL, with three modes for query values, whole URLs and form data.
Developers use it to build query strings by hand or check what a value looks like once encoded, while anyone crafting a shareable link uses it to make sure special characters like spaces and ampersands don't break the URL. It's one of many free data tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
3 worked examples
Type "hello world!" with Mode set to Query value to get hello%20world! — the space becomes %20 while the exclamation mark, which encodeURIComponent doesn't need to escape, stays as-is.
Type "https://example.com/a b?x=1&y=2" with Mode set to Whole URL to get https://example.com/a%20b?x=1&y=2 — only the space is escaped, while : / ? & = stay untouched.
Type "hello world" with Mode set to Form data to get hello+world, matching how a browser encodes a submitted HTML form.
FAQ
Quick answers to common questions about the URL Encoder.
It percent-encodes text so it can be safely included in a URL, using whichever of three modes fits what you're encoding.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. Encoding happens entirely on your own device using your browser's built-in encoding functions — nothing you type is sent to a server.
Query value encodes almost every special character, for a single value going into a query string. Whole URL leaves structural characters like : / ? # untouched, for encoding an entire URL. Form data behaves like query value but turns spaces into + , matching how browsers submit HTML forms.
Query value (encodeURIComponent) is almost always the right choice for a single parameter's value.
Yes. Unicode text is percent-encoded correctly as UTF-8 bytes in all three modes.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
It's built for typical text and URL values. There's no artificial length limit, though very large inputs may take a moment longer.
Did URL Encoder work for you?