Developer Tools

URL Encoder/Decoder

Encode and decode URL query strings and paths

Reviewed: AnyCalc Editorial|2026-07-19|Editorial policy|About

What this calculator does

URL encoding (percent encoding) converts characters that are unsafe or reserved in URLs into a format that can be transmitted correctly. Characters like spaces, ampersands, question marks, and non-ASCII characters are replaced with percent-encoded equivalents (e.g., space becomes %20). This tool encodes and decodes entire URLs or individual URL components. Developers need URL encoding when constructing query strings with user input, passing data through URL parameters, encoding redirect URLs, and working with APIs that expect URL-encoded request bodies (application/x-www-form-urlencoded). Incorrect encoding is a common source of bugs in web applications.

How to use

  1. 01
    Paste a URL or string
    Enter the URL or text you want to encode or decode.
  2. 02
    Choose encode or decode
    Select whether to percent-encode or decode the input.
  3. 03
    Copy the result
    Copy the encoded or decoded output for use in your application.

URL Encoder/Decoder FAQ

What characters need to be URL encoded?
Reserved characters that have special meaning in URLs must be encoded when used as data: : / ? # [ ] @ ! $ & ' ( ) * + , ; =. Spaces are encoded as %20 (or + in query strings). Non-ASCII characters like accented letters and emojis must also be percent-encoded.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URI but preserves reserved characters like : / ? & that are structurally meaningful. encodeURIComponent encodes everything including reserved characters, making it suitable for encoding individual parameter values. Use encodeURIComponent for query string values.
Why does my URL break when it contains spaces or special characters?
URLs can only contain ASCII characters from a limited set. Spaces, Unicode characters, and reserved characters must be percent-encoded. Failing to encode them causes the URL to be misinterpreted — the browser or server may truncate it at the space or treat & as a parameter separator.

Interpret carefully

Outputs are decision-support estimates, not a substitute for professional judgment.

  • Treating URL Encoder/Decoder output as a final professional diagnosis, quote, or legal determination
  • Entering approximate values when the result is sensitive to units or precision
  • Applying the FAQ answer (“What characters need to be URL encoded?”) to a special case without checking assumptions

Next steps

  1. Double-check inputs against your source documents (labs, statements, specs, or notes).
  2. Confirm the method below matches your use case before you act on the number.
  3. For medical, financial, or production decisions, verify with a qualified professional.

Disclaimer: Results are informational only and do not constitute medical, financial, legal, or professional advice. Report issues: sublimernj@gmail.com