URL Encode / Decode

Paste text to URL encode it for links and query strings, or paste a messy link to URL decode it.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This tool lets you URL encode text so it is safe to use in a web address, and URL decode encoded links back into readable text. A space becomes %20, an ampersand becomes %26, and Urdu or other non-English letters become a series of percent codes. It is the quickest way to fix broken links and build clean query parameters.

How do I URL encode text?

  1. Choose Encode or Decode.
  2. Choose component mode or full URL mode.
  3. Paste your text or link.
  4. Copy the result.
How to use the URL Encode / Decode on OneHubTools: 4 steps with a real screenshot of the tool
How to use the URL Encode / Decode, step by step.

What is percent-encoding?

URLs may only contain a limited set of characters. Anything else, such as spaces, quotes or letters from other scripts, must be written as a percent sign followed by its hexadecimal code. This is called percent-encoding. Non-English letters are first turned into UTF-8 bytes, and each byte is encoded.

CharacterEncoded
space%20
&%26
=%3D
?%3F
/%2F
#%23
پ (Urdu)%D9%BE
Result from the URL Encode / Decode on OneHubTools
What the URL Encode / Decode gives you.

Component mode vs full URL mode

Component mode works like JavaScript's encodeURIComponent. It encodes everything that has a special meaning in a URL, including / ? & = and #. Use it for single query parameters, such as a search term or a redirect address.

Full URL mode works like encodeURI. It leaves the structure of the address alone and only encodes characters that are never allowed, such as spaces. Use it when you have a whole link with a few unsafe characters.

Encoding query parameters

When you build a link like /search?q=red shoes&size=10, the space and any & inside a value would break it. Encode each value separately:

  • q = red shoes → red%20shoes
  • size = 10 → 10

The finished link becomes /search?q=red%20shoes&size=10. For campaign links with source and medium values, the UTM builder does this for you.

URL decode to read messy links

Links copied from emails, ads and analytics reports are often full of percent codes. URL decode turns them back into readable text so you can see where a link really goes. To split a long link into its parts, use the URL parser.

Why encoding matters for SEO and sharing

Unencoded spaces and symbols can break a link when it is pasted into an email, chat or social post. Part of the address may be cut off, sending people to an error page. Search engines also read encoded and unencoded versions as different addresses. Encoding values once, correctly, keeps links working and your analytics tidy.

Common mistakes

  • Double encoding. Encoding an already encoded value turns %20 into %2520. Decode first if you are unsure.
  • Plus signs. In some forms, + means a space. In paths it means a literal plus. Check how your system reads it.
  • Encoding the whole URL in component mode. That encodes the slashes and breaks the link.

Related developer tools

For binary data such as images, use Base64 encode and decode. To escape characters for HTML, use the HTML entity encoder, and for JSON strings, JSON escape and unescape. Clean, readable page addresses are easy to make with the slug generator.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Where the facts come from

According to MDN Web Docs, characters that are not allowed in a URL are replaced by a percent sign followed by their hexadecimal code, so a space becomes %20; percent-encoding has been part of web standards for about 30 years.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What does URL encode mean?

It replaces characters that are not allowed in a web address with percent codes, such as a space with %20.

How do I URL decode a link?

Choose Decode, paste the link and the percent codes turn back into readable text.

What is the difference between component and full URL mode?

Component mode encodes / ? & = too, for single values. Full URL mode keeps the link structure and only encodes unsafe characters.

Does it work with Urdu characters?

Yes. Urdu and other scripts are encoded as UTF-8 percent codes and decoded back correctly.

Why do I see %2520 in my link?

The value was encoded twice. Decode it once to get %20, or twice to get the original space.

Is my text sent anywhere?

No. Encoding and decoding happen in your browser.