About URL Encoder & Decoder
Apply JavaScript’s encodeURIComponent or decodeURIComponent to text. Encode individual parameter values rather than a complete URL when you need to preserve its separators.
How to use it
- Enter text or an encoded component.
- Choose encode or decode.
- Convert and copy the result.
Frequently asked questions
Should I encode a whole URL?
Usually encode individual query parameter values. Encoding a whole URL also encodes its separators.
How is a plus sign treated?
This uses URI component rules, not form decoding; a plus sign is not automatically converted to a space.