URL Encoder Decoder Logo
Developer Tools Embed Tool

URL Encoder Decoder

Encode text so it is safe inside a web address, or decode a percent-encoded address back into readable text, with a choice of encoding rules and a breakdown of the address into its parts.

0
Uses
—
Verified
Open
Access
Nov 2026
Added
Back to Directory

URL Encoder Decoder

Encode text so it is safe inside a web address, or decode a percent-encoded address back into readable text, with a choice of encoding rules and a breakdown of the address into its parts.

Auto-saved on this device

Encoding turns unsafe characters into % followed by two hex digits of their UTF-8 bytes, so é becomes %C3%A9. Everything runs in your browser and nothing is sent anywhere.

Found a Bug or Missing a Feature?

Report any problems or suggest new features you want. You can write in English, Urdu, Hindi, or any language! Our AI will analyze your feedback and upgrade the tool.

About This Tool

Encode text so it is safe inside a web address, or decode a percent-encoded address back into readable text, with a choice of encoding rules and a breakdown of the address into its parts.


Links break in small, annoying ways. A search term with an ampersand cuts the query in half, a space turns into %20 in one place and a plus sign in another, and a redirect URL pasted as a parameter swallows everything after it. This page encodes and decodes the text, and also pulls an address apart so you can see which piece is going wrong.

A quick tour of what changes

Encoding replaces each unsafe character with a percent sign and the hex value of its UTF-8 bytes. The phrase "hello world & friends" becomes hello%20world%20%26%20friends. The ampersand turns into %26 because an & in a query string means "next parameter". Non-English text works too: the Urdu word اردو becomes %D8%A7%D8%B1%D8%AF%D9%88, and café becomes caf%C3%A9. After you convert, a row of chips under the result lists every character that changed and what it became.

Which rule should you pick?

Component is the safe default for a single value, such as one search term or one parameter. Full address leaves : / ? # & and = alone, so a whole link keeps its shape while spaces and accents are fixed. Strict also encodes ! ' ( ) and *, which matters for some signature schemes and older parsers. Form data writes spaces as +, the format a browser uses when it submits an HTML form. Path encodes each segment but leaves the slashes, the right choice for a file or folder path that you will append to a domain.

Plus or %20?

Both mean a space, but only in the right place. In a query string, + is read as a space. In the path part of an address it is a literal plus sign. When you decode, the "Treat + as a space" box lets you choose, which is why a value like C++ needs to be sent as C%2B%2B.

Double encoding and broken sequences

If a decoded result still shows %20 or %26, the text was encoded twice, usually because a link was pasted into a field that encoded it again. For example %2520 decodes to %20, and one more pass gives a space. The page warns you and the Swap button moves the result back into the input to decode again. A lone % that is not followed by two hex digits is not an error here: the page decodes what it can and leaves the rest as it is, with a note.

Taking an address apart

Switch to Address parts and paste a link. The page lists the scheme, user name, password, host, port, path, query and fragment, with the decoded form next to the raw one, and splits the path into segments. Each query parameter gets its own editable row. Rename one, remove another, add a third, and the rebuilt address updates and can be copied. This is the fastest way to see that a tracking link carries a redirect, or that a parameter was empty. If a parameter holds a JSON payload, decode it here and tidy it in the JSON Formatter and Validator. Since percent codes are just bytes in hex, the Binary Hex Decimal Converter will show what a code like C3 A9 means. To pick links out of a long log, build a pattern in the Regex Tester Playground first.

Questions people ask

How do I encode a space in a URL?

Use %20 in a path or query, or + in form-style data. Pick the Form data rule to get the plus form.

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps characters that give a link its structure, such as : / ? # & and =. encodeURIComponent encodes them, so it suits a single value inside a link.

Why does my decoded text still contain %25 or %20?

The text was probably encoded twice. Decode it again with the Swap button.

Can I encode non-English text?

Yes. Characters are converted to UTF-8 bytes first, so Urdu, Arabic, Chinese and emoji all work.

Is my data sent to a server?

No. Encoding, decoding and address parsing all happen in your browser.