Primary URL encoding tool · Updated November 6, 2026

URL Encode Online

Paste text and get its URL-encoded result immediately. Choose text/component mode when the input is a value, or complete-URL mode when the URL delimiters must remain structural.

Three inputs, three results

InputModeOutput
hello worldComponenthello%20world
a+bComponenta%2Bb
https://example.com/a path?q=a bComplete URLhttps://example.com/a%20path?q=a%20b

GSC query answers

What does a URL encoder do?

A URL encoder turns data such as spaces, ampersands, and plus signs into percent-encoded bytes. Use component mode for one value; use complete-URL mode when the URL delimiters are structure.

What is percent encoding?

Percent encoding writes a byte as % followed by two hexadecimal digits. A space becomes %20 and a literal plus sign becomes %2B; plus-as-space is a form-urlencoded rule.

How do I URL encode text?

Paste text above, keep Component value selected, and run the tool.

Should I encode a whole URL?

Not with component encoding: it would escape structural characters such as ://, ?, and &. Select Complete URL to preserve separators while encoding data.

What is the difference between URL encode and URL encode/decode?

This page encodes input. To decode an already encoded string, use URL Decode Online.

Component encoding is not complete-URL encoding

encodeURIComponent() treats the input as data and escapes delimiters such as ? and &. Complete-URL mode keeps the scheme, host, path slashes, query separator, and fragment marker as URL structure, then encodes the data inside those parts. Pick the mode that matches what the input means.

Rerun the evidence

Run the same cases in the existing complete URL regression script. For decoding, use URL Decode Online; for format inspection, use URL Format / URL Formatter.