URL Encoder / Decoder
Escape query strings and decode percent-encoded URLs without guesswork.
URL Encoder / Decoder
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
- Choose Encode or Decode.
- Select a scope: Component or Full URL.
- Enable Form encoding if spaces should use
+. - 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
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.