URL Encoder

Percent-encode text for safe use inside a URL, query string or link parameter.

Try an example

Load a ready-made sample into this tool and run it. Every result you see is calculated live by the tool itself — nothing here is a pre-written answer.

Sample: input: https://managemytools.com/?q=hello world&lang=en

How to Use

  1. Paste the text or URL part.
  2. Click Run.
  3. Copy the encoded result.

What this URL encoder does

This URL encoder percent-encodes text so it can travel safely inside a web address. Characters such as spaces, ampersands and accented letters either break a URL or change its meaning, so each one is replaced by a % code built from its bytes. Paste the text or URL part, and copy an encoded version that links and forms will accept.

When to use it

Use it when you build a link by hand: a search query in a URL, a value passed to a page, or a redirect address with parameters. Encoding the values keeps a name containing & from being read as the start of a new parameter, and keeps spaces and other scripts from corrupting the link in transit.

Good to know

Encode a URL component, not a whole address in one go. The slashes, colon and question mark that structure a URL must stay as they are, so encode each part — the query value, the name, the path segment — separately, then assemble the address from the encoded parts.

Frequently asked questions

Why did my whole URL stop working after encoding?

Because the characters that hold a URL together were encoded too: :// and / became % codes, and the browser no longer recognises an address. Undo it, split the URL into parts, and encode only the values between the structural characters.

What characters actually need encoding?

Spaces, ampersands, equals signs, question marks and anything outside plain ASCII, including accented letters and other scripts. Letters, digits and a few safe marks such as hyphens pass through unchanged. When in doubt, encoding a value is harmless.

What is the difference between %20 and + for a space?

In a query string, + is an older convention that also means a space, while %20 is the general percent-encoding for space everywhere in a URL. This encoder uses percent codes, which are understood in every part of an address.

How to use URL Encoder

  1. Paste the text or URL part.
  2. Click Run.
  3. Copy the encoded result.

Limitations

Encoding is for a URL component; whole URLs with :// and / should be encoded per part, not all at once.

Browse all tools · More Text Converters tools

Scroll to Top