TEXT & DEVELOPER / FREE BROWSER TOOL

URL encode

Encode text for safe use in a URL component.

Files are processed in this browser and are not uploaded to YYY Tools.Details
Opening workspace

About URL encode

Use the URL encoder online when text must become one part of a URL. It can percent encode a query parameter value so characters such as & and = do not act as delimiters. The operation uses encodeURIComponent rather than a full-URL parser.

How to encode text for a URL component

  1. Paste the raw parameter value or URL-component text.
  2. Select Process to apply percent encoding.
  3. Copy the encoded value into the appropriate part of your URL.

A practical example

Input
hello world&x=1
Result
hello%20world%26x%3D1

The space becomes %20, not +. The ampersand and equals sign are encoded as literal data.

Supported input and limitations

  • Do not encode an entire URL if you want its : / ? and & delimiters to keep their structural meaning.
  • This is not application/x-www-form-urlencoded serialization. Input is limited to 5 MB; encoding already encoded data can double-encode percent signs.

Processing happens on your device. Read about local processing and optional workspace recovery.

Frequently asked questions

Should I URL encode an entire link?

Usually encode individual path or query components. Encoding a complete link here also encodes its structural separators.

Why are spaces encoded as percent 20 instead of plus?

encodeURIComponent uses %20. The + convention belongs to form-style encoding and must be interpreted according to that format.

Related tools