URL Encoder / Decoder
Percent-encode and decode URL values with control over reserved separators.
Your privacy is safe, this tool runs entirely in your browser. Nothing you enter is uploaded to or stored on our servers.
More Developer Tools
How to use URL Encoder / Decoder
- 1Choose Component for query values and path segments, or Full URL to preserve URL separators.
- 2Paste the text or URL you need to transform.
- 3Click Encode or Decode.
- 4Copy the result and test it in the destination system.
Encode the data, not the URL structure by accident
A URL encoder makes spaces, Unicode text and reserved characters safe for transport. Component mode is appropriate for an individual query value, while full URL mode preserves separators such as :, /, ? and &.
Percent-encoding does not validate that a URL is safe, reachable or authorized. Treat decoded values as untrusted input in applications.
Frequently asked questions
What is URL encoding?
Percent-encoding represents characters with UTF-8 bytes written as % followed by hexadecimal values, allowing data to travel safely in a URL.
What is the difference between component and full URL mode?
Component mode encodes reserved separators such as ?, &, = and /. Full URL mode preserves separators that define the URL structure while encoding unsafe characters.
Should query parameter values use encodeURIComponent?
Usually yes. Encode each key and value separately, then join the pairs with & and =. Encoding the whole query string as one component also encodes its separators.
Why does decoding fail on a percent sign?
A literal percent sign must be encoded as %25. An incomplete sequence such as %2 is not valid percent-encoding.
Is URL encoding encryption?
No. Anyone can decode it. URL encoding provides transport-safe syntax, not confidentiality.