URL Encode / Decode
Paste text to percent-encode it for a URL, or paste an encoded string to decode it back. UTF-8 safe and entirely in-browser — your input is never uploaded.
How to URL-encode text
- Choose Encode or Decode.
- When encoding, pick Component (escape everything) or Full URL (keep the structure).
- Paste your text and copy the result.
About URL encoding
URL encoding (percent-encoding) replaces characters that are not allowed in a URL — spaces, ampersands, question marks, hashes, non-ASCII letters and more — with a percent sign followed by their byte value, so the URL stays unambiguous. It is essential when putting user input, search terms or non-Latin text into a query string.
Component mode uses encodeURIComponent, escaping every reserved character — correct for a single query-string value or path segment. Full-URL mode uses encodeURI, which leaves structural characters like the colon, slash, question mark, ampersand and hash intact so a whole address stays usable. Decoding is UTF-8 aware, so emoji and accented characters round-trip cleanly. Nothing is sent to a server.
Frequently asked questions
What is URL encoding?
URL encoding, or percent-encoding, represents characters that have special meaning or are not allowed in a URL as a percent sign followed by their hexadecimal byte value (for example a space becomes %20), so the URL is transmitted unambiguously.
Component vs full-URL — which do I use?
Use Component (encodeURIComponent) for a single value such as one query parameter or path segment; it escapes reserved characters like ampersand and slash. Use Full URL (encodeURI) on a complete address to keep its structure intact.
Does it handle emoji and non-English text?
Yes. Encoding and decoding are UTF-8 safe, so accented letters, non-Latin scripts and emoji are encoded to the correct byte sequence and decode back exactly.
Is my text uploaded?
No. Everything runs in your browser, so the text you encode or decode never leaves your device.