130+ free tools. No sign-up. No hidden fees. Explore the toolkit

URL Encoder & Decoder

Percent-encode a URL or decode one back — see both the full-URL and single-component results side by side, so you always use the right one.

Paste a full URL or just the text you want to put inside one. Nothing is uploaded.

Result

Save to Pinterest

How It Works

URLs can only contain a limited set of characters safely, so anything else — spaces, accented letters, symbols like & and ? — has to be percent-encoded: each unsafe byte becomes a % followed by two hexadecimal digits. A space becomes %20, an ampersand becomes %26, and the letter é becomes %C3%A9 because it takes two bytes in UTF-8.

There are two ways to encode, and mixing them up is the most common URL mistake. Encoding a component escapes everything that has a special meaning in a URL, including ?, &, = and / — use it for a single value, such as a search term you are placing inside a query string. Encoding a full URL leaves the structural characters alone and only escapes the genuinely unsafe ones — use it for a complete link.

Worked Example

Encode hello world & friends as a component and you get hello%20world%20%26%20friends. Encode the full URL https://example.com/search?q=hello world&lang=en and you get https://example.com/search?q=hello%20world&lang=en: only the space changes, because :, /, ?, = and & are part of the URL’s structure and must stay as they are. Decode hello%20world and you get hello world back.

How to Use This Tool

Paste your URL or text into the box and press Encode to see both encodings, or press Decode to reverse a percent-encoded string. Copy the component result for a query parameter, or the full-URL result for a complete, shareable link. If a string contains a broken escape sequence — a % followed by something that is not two hexadecimal digits — decoding shows a clear error instead of a wrong answer.

Tips and Practical Advice

Last updated: