Skip to main content

URL Encoder/Decoder

Encode or decode URLs and query string components.

How it works

  1. 1

    Paste your input

    Paste the code, text, or value you want to process with URL Encoder/Decoder.

  2. 2

    Run the conversion

    Use the tool controls to generate, convert, validate, or inspect the result instantly.

  3. 3

    Copy output

    Copy the final output and use it in your app, script, or workflow.

Common use cases

  • Encode

    hello world & goodbye

  • Decode

    price%3D100%26currency%3DUSD

About This Tool

Encode special characters in URLs using encodeURIComponent or decode percent-encoded strings back to readable text. Handles full URLs and individual query parameters.

Features: auto-detection of whether input is encoded or decoded, and batch mode for multiple values. Essential for debugging API calls, building query strings, and working with URL parameters.

More examples

Examples

Encode

Input

hello world & goodbye

Output

hello%20world%20%26%20goodbye

Decode

Input

price%3D100%26currency%3DUSD

Output

price=100&currency=USD
Frequently Asked Questions
What is URL encoding?
URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hex digits. For example, spaces become %20 and & becomes %26.
When do I need URL encoding?
Whenever you pass special characters in URL query parameters, form data, or API requests. Characters like &, =, ?, #, and spaces must be encoded.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but preserves URL-significant characters (:, /, ?, #). encodeURIComponent encodes everything except letters, digits, and - _ . ~ -- use it for query parameter values.

Discover More Tools

View all Developer Tools →