Home Utility Tools URL Encoder / Decoder
Developer Tool

URL Encoder & Decoder

Encode URLs and query strings instantly with smart auto-detection. Build query parameters, decode encoded URLs, and handle special characters — all live.

Auto-Detection Query Builder Live Conversion
Auto-Detect
Insert:
Input
Output (URL Encoded)
Query String Builder
Base URL

How to Use URL Encoder / Decoder

1

Enter or Paste

Type a URL, query string, or plain text. The tool auto-detects whether to encode or decode.

2

Choose Type

Use "Component" mode for query values, "Full URL" to preserve URL structure characters.

3

Build Queries

Use the Query Builder to add key-value pairs and auto-generate a fully encoded URL.

4

Copy or Download

One-click copy the result or download as a .txt file. Swap output to input to chain operations.

What is URL Encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed in a URL into a format that can be transmitted over the internet. Each unsafe character is replaced by a % followed by two hexadecimal digits. For example, a space becomes %20, and a slash becomes %2F.

encodeURIComponent vs encodeURI

encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ). It's used for encoding individual query parameter keys and values. encodeURI preserves URL structure characters like : / ? # @ ! $ & = + , and is used when you need to encode a complete URL without breaking its structure.

What is the Query String Builder?

The Query String Builder lets you add key-value pairs through a visual interface and generates a fully encoded URL automatically. For example, adding name=John Doe and city=New Delhi generates ?name=John%20Doe&city=New%20Delhi. This is particularly useful for building API endpoints, search URLs, and form submissions.