Percent Encode a URL
Percent-encode text
search%3Fq%3Dhello%20world%20%26%20emoji%20%F0%9F%9A%80
What is URL Encoder?
Percent-encode a string for safe inclusion in a URL. Two modes: "Component" encodes aggressively (escapes ?, &, /, =), which is what you want for query-parameter values; "Whole URI" leaves URL-structure characters alone, which is what you want for a full URL with path and query parts. Handles Unicode correctly.
How do I use URL Encoder?
- Paste the text into the input panel.
- Pick Component (for a value) or Whole URI (for a complete URL).
- Copy the encoded output.
When should I use URL Encoder?
URL Encode is for making text URL-safe. For Base64 encoding (a different scheme), use Base64 Encode. To reverse the operation, use URL Decode.
Frequently asked questions
When do I need URL-encoding?
Any time you put user data into a URL; query parameters, path segments, fragments. Characters like space, &?, # have special meaning and must be escaped with %xx.
encodeURI or encodeURIComponent?
Encode a whole URL with encodeURI (mode: "Full URL"). Encode one parameter value with encodeURIComponent (mode: "Component"). The tool has buttons for both.
Is this safe for Unicode?
Yes. Unicode characters are UTF-8-encoded then percent-encoded, matching the RFC 3986 spec.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.
Tools that pair well with URL Encoder
- URL Decoder decode url encoding, free and in your browser.
- Base64 Encoder encode text to base64, free and in your browser.
- Slug Generator url-safe slug from text, free and in your browser.
- CORS Tester diagnose why a request is blocked, free and in your browser.