Encoding

URL Encoder

Percent-encode URL components or whole URLs in your browser.

Open URL Decoder →

For individual query values or path segments; reserved separators are encoded or decoded. Spaces use %20; + remains a literal plus when decoding. This is not form encoding.

Text to encode
Encoded output

What is URL Encoder?

Encode text for safe use inside a URL query parameter, path segment, or other URL component. The conversion uses the browser's native URL encoding function and never uploads your input.

How to use URL Encoder

  1. Enter text and choose URL component for a query value or path segment, or Whole URL to preserve URI separators.
  2. Select Encode URL; inspect the result before placing it in a URL.
  3. Copy or download the encoded text, or open URL Decoder to reverse the matching convention.

Example

Component: hello world & team → hello%20world%20%26%20team
Whole URL: https://example.com/?q=hello world → https://example.com/?q=hello%20world
Double encoding: %20 → %2520

Limitations and details

encodeURIComponent escapes separators such as &, /, and ?. encodeURI preserves them, so it is not suitable for a query parameter value and does not make arbitrary URLs safe or valid. Spaces become %20. Form encoding uses + for spaces; this tool does not implement that convention. Do not encode an already encoded value unless another encoding layer is intended. Unpaired Unicode surrogates produce an error.

Practical guide

URL encoding: encodeURI, encodeURIComponent and spaces

Frequently asked questions

Should I encode an entire URL?

Use Whole URL mode to preserve separators with encodeURI. Use the default component mode for an individual query value. Neither mode validates URL safety.

Is data sent anywhere?

No. Encoding runs entirely in your browser.