WebGroundwebground.app
Utilities · Developer Tool

URL Encoder & Decoder

Percent-encode text for safe use in URLs or decode it back, and break any link into its parts and query parameters.

Encoding and decoding happen in your browser. Nothing is uploaded.
Scope

Escapes every reserved character, including : / ? # & and =. Use it for a single value such as a query parameter.

Output

URL breakdown

Enter a complete link that starts with a scheme such as https:// to see its parts and query parameters here.

What Percent-Encoding Does

A URL can only contain a limited set of ASCII characters, and some of them, such as ?, &, =, #, and /, have a structural meaning. Percent-encoding replaces any other character with a percent sign and two hexadecimal digits for each of its UTF-8 bytes, so a space becomes %20 and é becomes %C3%A9.

Decoding reverses the process. It fails when a percent sign is not followed by two hexadecimal digits or when the bytes do not form valid UTF-8 text, and this tool tells you where that happens instead of returning broken output.

Component or Full URL

Choose the component scope for a single value that goes inside a URL, such as a search term or a redirect target. It escapes every reserved character, so the value cannot break the link around it. Choose the full URL scope for a complete address: it keeps separators such as :, /, ?, &, =, and # and only escapes characters that are never allowed, like spaces and non-ASCII letters.

When you enter a complete link, the breakdown shows its scheme, host, port, path, and fragment, along with a table of decoded query parameters that you can copy one by one.

  • Component works like encodeURIComponent in JavaScript.
  • Full URL works like encodeURI in JavaScript.
  • The plus sign option follows HTML form encoding, where a space in a query string is written as +.

Frequently Asked Questions

What is the difference between %20 and + for a space?+

%20 is the standard encoding of a space anywhere in a URL. A plus sign means a space only in query strings and form data, a convention that comes from HTML forms. In a path, + is a literal plus sign, so use %20 there.

Why does a URL break when it is encoded twice?+

Encoding turns every percent sign into %25, so %20 becomes %2520 the second time and the server receives the text %20 instead of a space. Encode a value once and decode it once.

Is the text I enter sent anywhere?+

No. Encoding, decoding, and the URL breakdown all run in your browser. Nothing is uploaded or stored.

Explore More on WebGround

View all