URL Encode
Percent-encode text for safe inclusion in URLs and query strings. Works with any Unicode input — runs entirely in your browser.
Plain text
URL-encoded output
What is URL encoding?
URL encoding (also called percent-encoding) is the process of replacing unsafe or reserved characters in a URL with a % followed by two hexadecimal digits representing the character's byte value. It lets you safely put text — including spaces, punctuation, and non-ASCII characters — inside a URL, a form field, or an HTTP header without breaking the URL's structure.
Component vs full-URI encoding
- Component (
encodeURIComponent): escapes every reserved character, including: / ? # & =. Use it on individual query values or path segments so that a/inside a name doesn't look like a new path. - Full URI (
encodeURI): preserves the characters that make up URL structure (: / ? # & = @). Use it on a complete, already-assembled URL that only needs spaces and non-ASCII escaped.
How to use
- Paste text into the left panel.
- Pick Component (default, safe for query values) or Full URI.
- Optionally enable
+for spaces if you needapplication/x-www-form-urlencodedoutput. - Click Encode →, then copy or download the result.
Common uses
- Query string values —
?q=hello+world&tag=c%23 - Path segments with spaces or special characters
- Form data sent as
application/x-www-form-urlencoded - OAuth signatures and API tokens
- Sharing URLs with non-ASCII characters (Cyrillic, CJK, emoji)
Privacy
Everything runs in your browser using built-in JavaScript functions. Nothing is sent to any server.
