URL Encoder
Make any text safe to put in a URL. Encode a single query value or path segment, or a whole URL with spaces and non-English characters, and inspect its parts.
- PrivateYour data never leaves this device
- No uploadsProcessed in your browser, not on a server
- 100% freeNo signup, no watermark, no trial
- UnlimitedUse it as often as you like, no daily caps
Text or URL to encode
Result
Output appears here.How to use the URL Encoder
- Paste the text or URL you want to encode.
- Choose "Component / value" for a query value or path segment, or "Full URL" for a complete address.
- Tick "Spaces as +" if the value goes into an HTML form body or a query string that expects form encoding.
- Copy or download the encoded result; full URLs are broken down in the URL parser below.
Latest guides
All →
SEO & MarketingHow to make a Wi-Fi QR code so guests join without typing
Make a WiFi QR code so guests join your network by pointing a phone camera at it. The format, hidden networks, special characters, safety…
12 Nov 20266 min read
PDF ToolsHow to watermark NID and certificate copies before sharing
Watermark NID copy and certificate PDFs with who it is for, the purpose and the date, so a copy given for one job is hard to reuse for…
12 Nov 20265 min read
PDF ToolsHow to number the pages of a thesis or project report PDF
Thesis page numbering made simple: the usual rules for front pages and chapters, and how to number a finished PDF from Chapter 1 for free…
12 Nov 20265 min readFrequently asked questions
What is URL encoding?
URL encoding (percent-encoding) replaces characters that aren't allowed in a URL with a % followed by two hex digits of their UTF-8 bytes. A space becomes %20 and "é" becomes %C3%A9.
encodeURIComponent vs encodeURI — which should I use?
Use encodeURIComponent ("Component / value") for a single piece such as a query parameter value; it also encodes / ? & = # so they can't break the URL. Use encodeURI ("Full URL") only for a complete URL, because it leaves those structural characters in place.
Should spaces be %20 or +?
Both are common. %20 is valid everywhere in a URL. The + sign means a space only in application/x-www-form-urlencoded data — HTML form submissions and most query strings — so use "Spaces as +" only there.
Which characters are not encoded?
encodeURIComponent leaves letters, digits and - _ . ! ~ * ' ( ) unchanged. RFC 3986 treats ! ' ( ) * as reserved, so tick the RFC 3986 option if a strict API (for example OAuth signatures) requires them encoded too.
Is my data sent anywhere?
No. Encoding runs entirely in your browser; nothing you paste is uploaded or stored.