converttexttools.com

URL Encode / Decode

Percent-encode text for URLs, or decode %20-style URLs back to text.

Words
0
Characters
0
No spaces
0
Sentences
0
Paragraphs
0
Reading time
0 sec

Private: this tool runs in your browser. No data is stored on this website. Learn more

What is the URL Encode / Decode?

URLs can only contain a limited set of characters. Spaces, accented letters, emojis and symbols like & ? # / must be โ€œpercent-encodedโ€ โ€” written as % followed by hex codes. For example a space becomes %20 and โ€œรฉโ€ becomes %C3%A9.

Use Encode to make text safe for a URL query parameter, and Decode to turn a messy link full of %XX codes back into readable text. Decoding also turns + into a space, as used in form submissions. Everything uses UTF-8 and runs in your browser.

How to use the URL Encode / Decode

  1. Choose Encode or Decode.
  2. Paste your text or URL.
  3. Copy the result, or press Swap to convert back.

Examples

Input
name=Asha & city=New Delhi
Output
name%3DAsha%20%26%20city%3DNew%20Delhi
Input
hello%20world%21
Output
hello world!

When to use it

  • Building query strings and API requests
  • Reading encoded links and UTM parameters
  • Debugging redirects
  • Sharing links with special characters

Frequently Asked Questions

What is URL encoding?

Replacing unsafe characters with % and two hex digits, e.g. space โ†’ %20, so they can be used inside a URL.

Should I encode the whole URL?

Usually only the values of query parameters. Encoding the whole URL also encodes : and /, which breaks the link.

Why is a space sometimes + and sometimes %20?

+ is used in HTML form data; %20 is the standard URL encoding. This decoder understands both.