⌘

URL Encoder

Encode the value you enter as url.

0Words
0Characters
0Sentences
0mReading time
Choose a file or fill the fields, then click Run tool.

About URL Encoder

A search term with spaces, an ampersand in a company name, or a redirect URL inside another URL can break a link or silently cut off parameters. This encoder prepares a single value so it can sit safely inside a query string or path segment. It is handy for building links, UTM parameters and API calls.

How it works

The tool calls the browser's encodeURIComponent on the whole input. Letters, digits and the characters - _ . ! ~ * ' ( ) stay as they are. Everything else becomes percent-encoded UTF-8 bytes. Spaces become %20, not +. Because reserved characters like / ? & = and # are encoded too, use it on individual values, not on a complete URL you want to keep working. Processing happens in your browser.

How to use URL Encoder

  1. Type or paste the text you want to process in the text box above.
  2. Select “Run tool” and check the result before copying or downloading it.

Worked example

Input: name=Ana & Bo/2. Output: name%3DAna%20%26%20Bo%2F2. The equals sign becomes %3D, each space becomes %20, the ampersand becomes %26 and the slash becomes %2F. You can then attach the result to a link as ?q=name%3DAna%20%26%20Bo%2F2 without it being read as separate parameters.

Tips for a better result

  • Encode only the value part, such as the text after q=, then assemble the full URL yourself. Encoding the whole link breaks its slashes and question mark.
  • Avoid running already-encoded text through again. %20 would become %2520, which servers then show as a literal %20.
  • Some HTML form handlers expect + for spaces. If a server shows %20 literally, check which encoding it expects.

Frequently asked questions

Why aren't characters like ! and ( encoded?

encodeURIComponent leaves - _ . ! ~ * ' ( ) unencoded by design. Most servers accept them. If a strict system needs them encoded, replace them by hand, for example ( as %28 and ) as %29.

Should spaces be %20 or +?

This tool always produces %20, which is valid in paths and query strings. The plus form comes from HTML form encoding. Many servers accept both in query strings, but only %20 is safe in a path.

Does it handle non-English text?

Yes. Each character is converted to its UTF-8 bytes, and each byte is percent-encoded. For example, é becomes %C3%A9. Most modern servers decode this correctly back to the original characters.

What to check

A formatted or parsed result is not proof that code is secure, correct or production-ready. Never paste production secrets.

Read the Privacy Policy for information about local processing, connected services and advertising.