D
Devault

URL Encoder/Decoder

Encode and decode URLs with query string parsing — 100% local processing

Input
Output

About URL Encoder/Decoder

URLs can only contain a limited set of characters. Spaces, non-ASCII letters, and reserved characters such as &, =, ?, and # must be percent-encoded, for example a space becomes %20, so they are not misread as part of the URL's structure.

This tool encodes and decodes text and query strings in your browser. The distinction that matters is scope: encoding a single component, such as one query parameter value, escapes reserved characters, whereas encoding a complete URL leaves characters like : / ? & intact so the URL still works.

Common use cases

  • Encoding a value before putting it into a query string.
  • Decoding a percent-encoded URL from a log or redirect to read it.
  • Fixing links that break because of spaces or special characters.
  • Parsing a query string into its individual key and value pairs.

Frequently asked questions

When should I encode the whole URL and when only a component?
Encode individual values (parameters, path segments) as components. Encode a whole URL only to escape unsafe characters while keeping its structure.
Why do I see + instead of %20 for spaces?
Form submissions use + for spaces in query strings, while percent-encoding uses %20. Both are common; decoders must know which convention applies.
Can I encode twice?
You can, but the result will contain %25 sequences and will not match what the server expects. Encode each value exactly once.