URL Encoder

Encode URLs and text using percent-encoding — runs entirely in your browser

Encoded Output

What is URL Encoding?

URL encoding (percent-encoding) is the process of converting characters that have special meaning in URLs into a safe, transmittable format. Characters are replaced with a % followed by their two-digit hexadecimal ASCII code. For example, a space becomes %20 and / becomes %2F.

Example

Input

https://example.com/search?q=hello world

Encoded Output

https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world

How to Use

  1. 1Paste the URL or text you want to encode in the input field.
  2. 2Click Encode. The result appears instantly in the output field.
  3. 3Use Copy All to copy the encoded result to your clipboard.
  4. 4Or click Download to save it as "encoded-url.txt".
  5. 5Click Clear to reset both fields.

Frequently Asked Questions

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a "%" followed by a two-digit hex code. For example, a space becomes %20 and "/" becomes %2F.

Any time you include user-provided data in a URL — such as search queries, form parameters, or path segments — it must be encoded to avoid breaking the URL structure and to prevent injection attacks.

encodeURI encodes a full URL and leaves structural characters like / ? = & intact. encodeURIComponent encodes everything including those characters, making it suitable for encoding individual query parameter values. This tool uses encodeURIComponent.

No. All encoding happens locally in your browser using JavaScript's built-in encodeURIComponent function. Nothing is transmitted over the network.

Yes. The input textarea supports multiline text and large inputs. The encoded result will update when you click Encode.