Web Tool

URL Encoder & Decoder

Percent-encode text for safe use in links and query strings, or decode it back to readable text. Choose Component mode for single values or Full URL mode for whole addresses. Everything runs in your browser.

Result
FAQ

URL encoding, explained

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 hex byte value. A space becomes %20 and an ampersand becomes %26, so the value survives inside a link.

What is the difference between Component and Full URL mode?+

Component mode uses encodeURIComponent and escapes every reserved character, including : / ? & = and #. Full URL mode uses encodeURI and leaves those structural characters alone, so an entire address stays usable.

Which mode should I use?+

Use Component for a single piece of a URL, such as a query value or a path segment you are inserting. Use Full URL when you have a complete address and only want to fix spaces and other unsafe characters without breaking its structure.

Why did decoding fail?+

Decoding throws when the text contains a broken percent sequence, like a stray "%" or "%zz" that is not a valid hex byte. Fix or remove the bad sequence, or switch modes if the string was encoded a different way.

Is this tool free and private?+

Yes. It is completely free with no login, and all encoding and decoding happen in your browser. Nothing you paste is sent anywhere.

Related tools

All tools →

More in General Tools.