URL Encode / Decode

Encode and decode URLs online. Supports both encodeURI (full URL) and encodeURIComponent (component) modes. Free, client-side tool.

Everything runs in your browser — your data is never sent to any server.

Why Use the URL Encoder/Decoder?

URL encoding is essential when working with query parameters, API requests, and web forms. Special characters like spaces, ampersands, and non-ASCII text must be properly encoded. Our tool supports both full URI encoding and component encoding to match your exact needs.

Key Features

  • Two encoding modes: full URI (encodeURI) and component (encodeURIComponent)
  • Clear explanation of what each mode preserves
  • Swap button to instantly switch between encoded and decoded content
  • One-click paste and copy for efficient workflow

How to Use

  1. Select the Encode or Decode tab
  2. Choose between Full URI or Component encoding mode
  3. Paste your text or encoded URL and click the action button

Technical Details

Full URI encoding (encodeURI) preserves URL-reserved characters (: / ? # @ ! $ & ( ) * + , ; =) making it suitable for complete URLs. Component encoding (encodeURIComponent) encodes all special characters, making it suitable for individual query parameter values. Decoding always uses decodeURIComponent.

FAQ

When should I use full URI vs component encoding?

Use full URI encoding when you have a complete URL. Use component encoding when encoding a single query parameter value that should not contain any URL-reserved characters.

What is percent encoding?

Percent encoding replaces special characters with a '%' followed by two hexadecimal digits. For example, a space becomes '%20' and an ampersand becomes '%26'.

Related tools