URLs allow only a limited set of characters. Spaces, accents and symbols like &, ? and # must be percent-encoded — replaced with % followed by their hex byte value. This tool encodes text for URLs and decodes percent-encoded URLs back, instantly and locally.
How to use it
- Type or paste your text or URL.
- Choose Encode or Decode.
- The result appears instantly.
- Click Copy.
About URL Encode / Decode
URL encoding is essential when building URLs dynamically. A user search term or email with special characters placed directly into a query string can break the URL. Encoding turns a space into %20 and an @ into %40 so the value transmits exactly. Decoding helps you read logs, debug redirects, or understand a %-code-filled link. This uses standard browser encoding rules with full Unicode support, all client-side.
FAQ
encodeURI vs encodeURIComponent?
encodeURIComponent encodes a single value and escapes & and =. encodeURI is for a whole URL and leaves those intact. This tool encodes components, which is usually what you want for query values.
Why is a space sometimes %20 and sometimes +?
In paths a space is %20. In HTML form query strings it is historically +. Both decode back to a space.
Is my data sent to a server?
No. All encoding and decoding happens locally.