Encoding
URL Encoder
Percent-encode URL components or whole URLs in your browser.
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.
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
- Enter text and choose URL component for a query value or path segment, or Whole URL to preserve URI separators.
- Select Encode URL; inspect the result before placing it in a URL.
- 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 spacesFrequently 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.