URL Encode
Percent-encode text
search%3Fq%3Dhello%20world%20%26%20emoji%20%F0%9F%9A%80
What is URL Encode?
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 Encode?
- 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 Encode?
URL Encode is for making text URL-safe. For Base64 encoding (a different scheme), use Base64 Encode. To reverse the operation, use URL Decode.
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.