URL
URL Encoder/Decoder
Encode and decode URL parameters and addresses — with three standard modes: Component, full URI and Form.
Raw text or URL
1
Encoded output
Component for parameter values (full encoding), Full URI for full addresses containing ://:? (these characters are left untouched), and Form is suited to query strings, where spaces become +.
ABOUT
URL encode and decode with three standard methods
Non-ASCII characters, spaces and symbols such as & and ? must be percent-encoded inside a URL. This tool offers the three methods separately: encodeURI for a full address, encodeURIComponent for a single parameter, and form mode, which turns spaces into +. Picking the right one prevents broken query strings.
HOW TO
How to use it
- Enter the text or URL.
- Choose the method: URI for a full address, Component for one parameter, Form for form data.
- Copy the result; switch to decode to reverse it.
FAQ
Why is a space sometimes
Frequently asked questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI leaves URL structure characters (:/?#&=) alone, while encodeURIComponent encodes them too, which is what you want for a parameter value.Why is a space sometimes %20 and sometimes +?
+ means a space only in application/x-www-form-urlencoded data; in a URL path it must be %20.