Skip to content
HB HitBidder.com
Developer Tools

URL Encoder / Decoder

Escape query strings and decode percent-encoded URLs without guesswork.

Free No signup Runs in your browser
Tool workspace

URL Encoder / Decoder

Ready to use

URL encoder and decoder

Percent-encode query values or whole URLs — and decode them again.

Component is right for a single value; Full URL preserves the URL structure.
0 characters

URL encoding is not HTML escaping. Use HTML escaping when inserting text into a page.

URL encoding without the guesswork

The HitBidder URL Encoder / Decoder converts text to percent-encoded form and back. Choose the right scope for the job: a single query value, a path segment or a complete URL. Everything runs in your browser with the built-in URL functions; the input is never uploaded or stored.

How to use it

  1. Choose Encode or Decode.
  2. Select a scope: Component or Full URL.
  3. Enable Form encoding if spaces should use +.
  4. Paste the value, run the conversion, then copy or download the result.

Component vs full URL

A query value is one component inside a URL. If it contains &, =, ? or /, those characters must be encoded so they are not mistaken for URL syntax. Component mode uses encodeURIComponent and is the right default for form fields, query values and path segments.

Full URL mode uses encodeURI. It keeps the URL structure — scheme, slashes, query separators and fragment marker — while encoding spaces, Unicode and other unsafe characters. Use it when the input is a complete address rather than a single value.

Form encoding and plus signs

Classic form encoding represents a space as + instead of %20. Enable the form option for query strings and bodies that use that convention. When decoding, the option converts + back to a space, while a literal plus encoded as %2B still decodes correctly.

Why decoding can fail

A percent sign must be followed by two hexadecimal digits. A lone %, an incomplete sequence or decoding with the wrong scope produces a malformed-URI error. If a value contains literal percent signs, they must themselves be encoded as %25.

URL encoding is not HTML escaping

URL encoding is for URLs. When inserting untrusted text into an HTML document, use HTML escaping so characters such as <, > and & cannot break out of the markup. The two encodings solve different problems.

URL encoder FAQ

Use Component for a single query value, path segment or form field; it encodes characters like :, /, ?, & and =. Use Full URL when the whole URL should keep its structure and only unsafe characters should be encoded.

No. Encoding and decoding use the browser built-ins encodeURIComponent, encodeURI, decodeURIComponent and decodeURI. Nothing is sent to HitBidder or stored.

The application/x-www-form-urlencoded format represents spaces as +. Enable Form encoding when working with form bodies or query strings that use that convention; percent-encoding otherwise uses %20.

A percent sign must be followed by two hexadecimal digits. A lone %, an incomplete sequence or a wrong decoding scope causes an error. Check the original value and whether it uses + for spaces.

Yes. The browser encodes Unicode characters as UTF-8 percent-encoded bytes and decodes them back to the original characters.

No. URL encoding is for URLs and query strings. When inserting text into HTML, use HTML escaping instead so characters such as <, > and & are rendered safely.
Beyond the toolbox

Tools get you ready. Real traffic gets you results.

HitBidder is a free 1:1 traffic exchange. Give a click, get a click, and send real visitors to the pages you just finished optimising.