←
Developer

URL Encode & Decode

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Percent-encode and decode URLs

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Offline use
Works without a connection once this page has loaded
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About URL Encode & Decode

This tool percent-encodes text so it can be placed safely in a URL, and decodes percent-encoded strings such as caf%C3%A9 back into readable text. Characters are first converted to UTF-8 bytes and each unsafe byte becomes a % followed by two hexadecimal digits, which is how browsers and servers expect non-ASCII text, spaces and symbols like & = ? # to appear in query strings and paths.

Pick the method that matches where the text will go. Component encodes everything except letters, digits and - _ . ! ~ * ' ( ), which is right for a single query value or path segment. Full URL keeps the structure characters : / ? # & = so a complete address stays usable. Form uses + for spaces like HTML forms (application/x-www-form-urlencoded), and Strict also escapes ! ' ( ) * per RFC 3986. When decoding, you can turn + into spaces, decode double-encoded text in one go, and process each line separately.

URL Encode & Decode runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use URL Encode & Decode

  1. Paste a URL, query string or any text into the Input box.
  2. Choose Encode or Decode under Direction.
  3. Pick a Method: Component for a single parameter value, Full URL for a whole address, Form for + as space, or Strict for RFC 3986.
  4. For decoding, turn on Decode repeatedly if the text was encoded twice (for example %2520).
  5. Copy the result from the Output box, or click Use output as input to reverse it.

Frequently asked questions

What is the difference between encodeURIComponent and encodeURI?

encodeURI is meant for a complete URL, so it leaves reserved characters such as : / ? # & = + unescaped. encodeURIComponent is meant for one piece of a URL, such as a query value, and escapes those characters too. Use Component when you insert user text into a URL, otherwise an & or # in the text will break the URL.

Should a space be encoded as %20 or +?

In paths and in most APIs a space is %20. The + form is only used in application/x-www-form-urlencoded data, which is what HTML forms send in query strings and POST bodies. Servers that parse form data turn + back into a space, but a + inside a path stays a literal plus sign.

Why do I get a malformed URI error when decoding?

Decoding fails when a % is not followed by two hex digits (for example "50% off") or when the % sequences do not form valid UTF-8, which happens with text encoded in Latin-1 or Windows-1252. The status message shows the first bad sequence and its position so you can fix it.

What is double encoding?

Double encoding happens when already encoded text is encoded again, so %20 becomes %2520 because the % itself is escaped as %25. Turn on Decode repeatedly and the tool keeps decoding, up to 10 passes, until no percent sequences change.

Is the text sent to a server?

No. Encoding and decoding use the JavaScript functions built into your browser, so URLs containing tokens or personal data never leave your device.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it