GWN Tools · Converters

URL Encoder & Decoder

Percent-encode text for safe use in links and query strings, and decode it back. UTF-8 safe. Runs entirely in your browser.

Live — output updates as you type

Uses encodeURIComponent — safest for individual query values and path segments.

About the URL encoder & decoder

What is a URL encoder? A URL encoder converts text into a percent-encoded form that is safe to place inside a web address, or decodes that form back into readable text. This one works in both directions and supports any Unicode characters.

What is URL encoding?

URL encoding, also called percent-encoding, replaces characters that are unsafe or reserved in a URL with a percent sign followed by their hexadecimal byte values. For example, a space becomes %20 and an ampersand becomes %26, so the data travels safely inside a web address.

How do I encode and decode a URL?

Paste your text and choose Encode to percent-encode it, or paste an encoded string and choose Decode to turn it back into readable text. This tool runs entirely in your browser using encodeURIComponent and decodeURIComponent.

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes almost every reserved character, so it is correct for a single query value or path segment. encodeURI leaves characters that make up a full URL, such as :/?&#, unencoded, so it is meant for encoding a whole address at once. This tool uses encodeURIComponent because it is the safest choice for individual values.

Does URL encoding support non-English characters?

Yes. encodeURIComponent encodes each character as its UTF-8 bytes, so accented letters, emoji, and other Unicode characters are percent-encoded correctly and decode back to the exact original text.