URL Encoder
Encode text for a URL. Choose component mode for one query value or path segment.
How to use it
- Paste your input, or load the example.
- Choose the options that match your task.
- Select Encode URL text, then review the result.
- Copy the result or download url-encoder.txt.
Choose the right URL mode
Component mode uses encodeURIComponent and escapes separators such as &, =, / and ?. Whole URL mode uses encodeURI and preserves URL delimiters, so it is not suitable for a single query value. Form mode follows application/x-www-form-urlencoded rules and writes spaces as +. Existing percent escapes are encoded again. Input is never opened as a URL.