๐Ÿ”—

URL Encode / Decode

Encode or decode URLs and query strings, and break a URL into its parts and parameters.

Built and maintained by Abdur Rehman ยท Free, no sign-up

Loading URL Encode / Decodeโ€ฆ
๐Ÿ”’PrivateRuns in your browser โ€” nothing is uploaded.
โšกFastInstant results, no waiting in queues.
๐Ÿ’ธFreeNo sign-up, no watermark, no limits.
๐Ÿ“ฑAnywhereWorks on phone, tablet and desktop.

How to use the URL Encode / Decode

  1. Paste a URL or text
  2. Click Encode or Decode
  3. Copy the result

Encode and decode URLs

Paste text or a link and choose Encode (component) for a single value such as a search term or parameter, Encode full URL to keep :/?&= intact, or Decode to turn %20-style codes back into text (a + is read as a space too). Paste a full URL and you'll also see its parts โ€” protocol, host, path, query and hash โ€” with every query parameter listed in a table.

What is URL encoding?

URLs can only contain certain characters, so others are written as % followed by their UTF-8 bytes in hex. Common ones:

  • Space: %20 (or + in form data).
  • Forward slash %2F; ampersand %26; question mark %3F; hash %23.
  • Characters beyond ASCII use UTF-8: รฉ = %C3%A9.

Example: โ€œfree online tools & more/?โ€ โ†’ free%20online%20tools%20%26%20more%2F%3F. Decoding reverses it.

In code

  • JavaScript โ€” encodeURIComponent() and decodeURIComponent().
  • Python โ€” urllib.parse.quote() and unquote().
  • Java โ€” URLEncoder.encode(s, StandardCharsets.UTF_8) (spaces become +).
  • PHP โ€” rawurlencode() (%20) or urlencode() (+).
  • C# โ€” Uri.EscapeDataString() and Uri.UnescapeDataString().
  • Excel has =ENCODEURL() but no decode function, so paste the text here.

For SVG data URIs in CSS, use Encode (component) on the SVG code.

๐Ÿ”’ Everything runs in your browser โ€” nothing you paste is uploaded.

๐Ÿ’ป Keep exploring Developer Tools

See all Developer Tools