Advertisement

URL Encode and Decode

Percent-encode or decode URLs and query strings, fix double-encoded links, and break any URL into its parts.

Last updated:

URL Encoder / Decoder
Encode · Decode · Parse query
 
URL parser

How to Encode or Decode a URL

1
Type text on the left to encode it, or paste an encoded URL on the right to decode it
2
Pick a mode: Component for values, Full URL for whole links, Form for + spaces
3
Read the parsed host, path and query parameters below

Double-encoded strings (%2520) are decoded fully, layer by layer.

Which Encoding Mode Do I Need?

ModeEncodesUse for
ComponentEverything except A-Z a-z 0-9 - _ . ! ~ * ' ( )Query values, path segments, API parameters
Full URLSpaces and unsafe characters, keeps : / ? # & =A complete link with spaces or non-English characters
FormLike Component but spaces become +HTML form posts (application/x-www-form-urlencoded)
Every characterAll bytes as %XXDebugging and testing filters

Common URL-Encoded Characters

CharacterEncodedCharacterEncoded
space%20 (or + in forms)&%26
/%2F?%3F
=%3D#%23
:%3A@%40
+%2B%%25
é%C3%A9₹%E2%82%B9

What Is Percent Encoding?

Double Encoding

Encode and Decode in Code

LanguageEncodeDecode
JavaScriptencodeURIComponent(s)decodeURIComponent(s)
Pythonurllib.parse.quote(s, safe="")urllib.parse.unquote(s)
PHPrawurlencode($s)rawurldecode($s)
JavaURLEncoder.encode(s, UTF_8)URLDecoder.decode(s, UTF_8)
C#Uri.EscapeDataString(s)Uri.UnescapeDataString(s)

URL Encoding in Everyday Tools

ToolHow
Excel / Google Sheets=ENCODEURL(A1)
curlcurl -G --data-urlencode "q=cafe & tea" https://example.com
PostmanSelect text in Params → right-click → EncodeURIComponent
HTML formsBrowsers encode fields automatically on submit
Google Analytics UTM builderEncodes campaign values for you

Related Tools

Frequently Asked Questions

How do I decode a URL? +

Paste it in the Encoded box. It decodes instantly, including double-encoded strings, and the parts are shown below.

How do I URL-encode a string? +

Type it in the Decoded box with Component mode. Copy the encoded result.

What is the difference between encodeURI and encodeURIComponent? +

encodeURI keeps characters that structure a URL (: / ? & =); encodeURIComponent encodes them too, which is what you want for a single value.

Should spaces be %20 or +? +

Use %20 in paths and most APIs. + means space only in form-encoded query strings.

What does %2520 mean? +

The value was encoded twice. Decoding once gives %20; decoding again gives a space. This tool removes all layers.

How do I see the parameters in a URL? +

Paste a full https:// URL. The parser lists every query parameter with its decoded value.

Does it handle non-English characters and emoji? +

Yes. Characters are encoded as UTF-8 bytes, as browsers do.

Is my URL sent anywhere? +

No. Encoding, decoding and parsing all run in your browser.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →