URL Encode
Encode a URL component, such as a query parameter value.
Free. No signup required.
What this tool does
Percent-encode text for URLs. Choose component, full-URL or query mode to handle separators and spaces correctly, with processing in your browser.
How to use
Paste a query value or path component to percent-encode it.
Features
Percent-encode reserved characters in a parameter value, with component and full-URL modes.
When to use it
Put text containing spaces or an ampersand into a query parameter without splitting it.
Example and checks
Encode a parameter value before inserting it into a URL. In component mode, the ampersand is escaped so it cannot start a second parameter. Full-URL mode deliberately preserves URL separators and is a different operation.
Value: tea & cake
Component: tea%20%26%20cake
URL: https://example.com/?q=tea%20%26%20cakeCommon questions
Should I encode the whole URL or just a value?
Component mode encodes URL separators. Choose full-URL mode to preserve URL structure, or query mode for form-style parameter encoding.
Data processing
This tool processes its input locally in your browser without sending it to a server for processing. Input and results are not included in share URLs.
Related tools
URL Decode
Decode URL-encoded text locally.
Base64 Encode
Encode Unicode text as Base64 locally.
Text Diff
Compare two text blocks locally.