Skip to tools

Encoders / Decoders

URL Encode

Spaces, ampersands, question marks and non-English characters can break a URL when they appear inside a value. The URL Encoder converts them into percent-encoded sequences such as %20 and %26 so the value travels safely in a query string or path.

Encode individual parameter values rather than the whole address to keep the URL structure intact.

How to use the URL Encode

  1. 1Use the URL Encode right on this page, or open the full workspace for history, sharing and every other tool.
  2. 2Paste your input, upload a file, or drag and drop a file onto the input box (up to 25 MB).
  3. 3The result appears in the output panel automatically and updates when you change the input or an option.
  4. 4Use Copy Output or Download to save the result. Nothing is uploaded to a server.

Example

A search phrase with spaces and an ampersand is encoded for use in a query string.

Input
name=Ada Lovelace&role=engineer
Output
name%3DAda%20Lovelace%26role%3Dengineer

When to use it

  • Building query strings for API calls by hand
  • Creating share links that contain search terms or redirect URLs
  • Encoding UTM campaign values that include spaces or symbols

Tips and common mistakes

  • Do not encode a value twice — %2520 is a sign of double encoding.
  • Reserved characters like & and = must be encoded when they are part of a value.
  • Use URL Decode to read encoded links from logs.

Frequently asked questions

What is the difference between %20 and +?

Both can represent a space in query strings; %20 works everywhere, + only in form-encoded data.

Does it encode Unicode?

Yes, characters are encoded as UTF-8 byte sequences.

TutorialURL encoding explained: why %20 appears in links

Related tools

Ready to try it?

Free, no sign-up, and your data never leaves your browser.