URL Encoder

Percent-encode a URL component from pasted text. Escape spaces, ampersands and other separators before inserting a value into a URL.

Encode one value before assembling a URL. A literal ampersand in a search term needs escaping so it cannot be mistaken for a parameter separator.

  • 100% free
  • No registration
  • On your device
  • Modern browser
  1. 1Enter details
  2. 2Adjust options
  3. 3View result
URL Encoded ResultLive
https%3A%2F%2Ftoolbox.local%2Fsearch%3Fq%3Dpdf%20%26%20word

Your input stays on this device for this operation. We don’t upload or store it.

About URL Encoder

Encode one value before assembling a URL. A literal ampersand in a search term needs escaping so it cannot be mistaken for a parameter separator.

Reserved separators

Escapes characters such as ampersands and slashes within a value.

Live output

Recomputes the component when the input changes.

How to use URL Encoder

  1. 1

    Enter a raw component

    Paste a raw value such as tea & coffee into Raw Text / URL.

  2. 2

    Copy the percent escapes

    Copy the encoded result.

  3. 3

    Insert the encoded value

    Insert the result where that value belongs, keeping the surrounding URL separators intact.

Formats and practical limits

Text in, UTF-8 percent-encoded component out.

  • Spaces become %20. Some characters, including apostrophes and parentheses, remain unescaped under encodeURIComponent.
  • Pasting a whole URL also escapes its structural separators. Previously encoded percent signs are encoded again.

Practical example

tea & coffee becomes tea%20%26%20coffee.

Further reading

Frequently Asked Questions

2 answers
What happens to a literal plus?

It becomes %2B.

Can I encode a full URL as a redirect parameter?

Yes, when the entire URL is the value of a single parameter.