URL Encoder
Percent-encode text so it can be used safely in a URL, a query string or form data.
Text
Encoded
Processed in this browser tab. Nothing is uploaded.
How to use the URL Encoder
- Type or paste text.
- Choose a mode: a single value (component), a full URL, or form data.
- Copy the encoded result.
Example
Input
café & croissant = 5€Result
caf%C3%A9%20%26%20croissant%20%3D%205%E2%82%ACWhat it does
- Three modes
- Component mode encodes everything except letters, digits and - _ . ~. Full URL mode keeps : / ? # & = intact. Form mode uses + for spaces.
- Strict RFC 3986
- Characters ! ' ( ) * are encoded too, which encodeURIComponent() leaves alone.
Frequently asked questions
When should I use component vs full URL mode?
Use component mode for a single value you are inserting into a URL, such as a search term. Use full URL mode only when you have a complete URL with a few unsafe characters, such as spaces.
Should spaces be %20 or +?
%20 works everywhere in a URL. + means a space only in form-encoded query strings (application/x-www-form-urlencoded).
Is my data sent to a server?
No. The conversion runs in your browser, and nothing you paste is uploaded, logged or stored.