Get started
HomeEncoding & SecurityURL Encode
Encoding & SecurityRuns in your browser · files never uploaded

URL Encode

Percent-encode text

4.8· 45 votes
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →
encodeURIComponent — escapes `?`, `&`, `/`, `=` (for query values).
Plain input31 chars
Encoded55 chars
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?

  1. Paste the text into the input panel.
  2. Pick Component (for a value) or Whole URI (for a complete URL).
  3. 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.

Frequently asked
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.

Related in Encoding & Security
Base64 Encode
Base64 Decode
URL Decode
JWT Decoder
Hash Generator
Password Generator
Strength Checker
HMAC Generator