HomeDeveloper ToolsURL Encode/Decode

encode. decode. clean urls.

encode or decode URL strings in real time. supports both encodeURIComponent and encodeURI modes.

Component mode — uses encodeURIComponent. Encodes all special characters including /, ?, &.

input
output

encoded output will appear here

free use available

What is URL Encode/Decode?

URL Encode and Decode converts special characters in URLs to their percent-encoded equivalents and back. This is essential when building query strings, debugging API requests, or handling URLs that contain spaces and special characters.

The tool supports both encodeURIComponent mode (encodes everything except unreserved characters) and encodeURI mode (preserves URL structure characters like / : ? #). Choose the right mode for your use case.

All processing happens in your browser. Your URLs and data are never sent to any server.

How to Use URL Encode/Decode

  1. 1

    Paste your text or URL

    Enter the text you want to encode, or paste a percent-encoded URL to decode.

  2. 2

    Choose mode

    Select encodeURIComponent for query parameter values, or encodeURI for full URLs.

  3. 3

    See the result

    The encoded or decoded output appears instantly.

  4. 4

    Copy

    Copy the result to your clipboard with one click.

Common Use Cases

API query strings

Encode parameter values that contain spaces, ampersands, or special characters.

Debugging encoded URLs

Decode percent-encoded URLs to read the original text.

Form data encoding

Encode form field values for URL-encoded POST requests.

Redirect URLs

Encode URLs that are passed as parameters in redirect chains.

Deep links

Encode complex URLs for use as parameters in mobile app deep links.

Frequently Asked Questions

more free tools

PDF utilities, image tools, developer helpers — all free, no signup.

Something wrong?