URL Encoder / Decoder

Percent-encode a URL or query value, or decode one back to readable text, instantly in your browser. URL encoding replaces unsafe characters (spaces, &, ?, #) with %-codes so links and parameters survive transmission intact. The table below lists the most common character encodings.

Common URL-encoded characters

CharacterEncoded
space%20
!%21
#%23
$%24
&%26
+%2B
/%2F
:%3A
=%3D
?%3F
@%40

When to use it

  1. Safely pass a value with spaces or symbols inside a query string.
  2. Build an OAuth redirect or nested URL parameter that won't break.
  3. Decode a %-encoded link to see the original text.

How to Use

  1. Paste your text or URL into the input field.
  2. Choose the encoding mode: encodeURIComponent (for query values), encodeURI (for full URLs), or Form Data.
  3. Click Encode to percent-encode the text, or Decode to convert it back.
  4. Use the Query String Builder tab to construct URLs with multiple parameters.
  5. Copy the result to your clipboard with one click.

Features

  1. Encode and decode URLs using encodeURIComponent, encodeURI, or form-data format
  2. Query string builder for constructing URLs with multiple parameters
  3. Supports multi-pass encoding for double-encoded URLs
  4. Handles non-ASCII characters including accented letters and emoji
  5. 100% client-side — your data never leaves your browser

FAQs

What is URL encoding?

URL encoding (also called percent-encoding) converts characters into a format that can be safely transmitted within URLs. Special characters are replaced with a '%' followed by their hexadecimal value, e.g. a space becomes '%20'.

What's the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URI but preserves characters like ':', '/', '?', '&', '=' that have special meaning in URLs. encodeURIComponent encodes everything except letters, digits, and a few symbols (-_.!~*'()), making it ideal for encoding query parameter values.

When should I use URL encoding?

Use URL encoding whenever you include user-supplied data in URLs, such as search queries, form data, API parameters, or any text that might contain special characters like spaces, ampersands, or non-ASCII characters.

What's the difference between %20 and + for spaces?

Both represent a space character. '%20' is the standard percent-encoding used in URLs, while '+' is used in the application/x-www-form-urlencoded format (commonly used in HTML form submissions). Most servers accept both.

Can I encode non-ASCII characters in URLs?

Yes. Non-ASCII characters (like accented letters, CJK characters, or emoji) are first encoded to UTF-8 bytes, then each byte is percent-encoded. For example, 'é' becomes '%C3%A9'.

What is a query string?

A query string is the part of a URL that follows a '?' character. It contains key-value pairs separated by '&', e.g. '?name=John&age=30'. Each key and value should be URL-encoded to handle special characters.

Technical Details

URL encoding utilizes JavaScript's encodeURIComponent() method, which converts special characters into percent-encoded sequences according to RFC 3986 standards. Characters like spaces become %20, ampersands become %26, and non-ASCII Unicode characters are first converted to UTF-8 byte sequences, then each byte is hex-encoded with a percent prefix. Decoding applies decodeURIComponent() to reverse this process, handling malformed sequences gracefully. The tool differentiates between component encoding (for query parameters) and full URI encoding (for complete URLs), applying appropriate escaping rules to preserve URL structure while safely encoding user data.

From the Blog

  • Developer Tools That Save You Hours Every Week
  • Format and Validate JSON Online — Free & Instant
  • Free QR Code Generator — No Sign-Up, No Limits

Developer Tools

Developer Tools

  • CSS Minifier
  • JS Minifier
  • HTML Minifier
  • Markdown Editor
  • SVG to Vector Drawable
  • API Tester
  • Image to Base64
  • HTML to JSX