ToolsURL Encoder/Decoder
Web Tool In-Browser Sandbox

Free Online URL Encoder & Decoder (Percent-Encoding)

Safely percent-encode query parameters and full URLs or decode encoded URI strings back to readable UTF-8 text per RFC 3986.

Loading component...

100% Client-Side Privacy

Tokens, code & payloads never leave your browser.

Zero Latency Execution

Instant processing via native browser Web APIs.

No Account Required

Unlimited, free access without paywalls or quotas.

Key Features & Capabilities

Supports both `encodeURIComponent` (parameter values) and full-URL decoding
Handles UTF-8 multibyte characters, spaces, `&`, `=`, `?`, and `+` signs cleanly
Real-time encoding and decoding as you type or paste
100% in-browser execution — safe for OAuth redirect URLs and signed tokens

How to Use the URL Encoder/Decoder

Step 1: Choose Encode or Decode1

Select whether to percent-encode raw text or decode an encoded URL string.

Step 2: Paste String or URL2

Enter your query string, callback URL, or percent-encoded parameter.

Step 3: Copy Clean Output3

Copy the safely encoded or decoded string for your HTTP client or code.

Practical Developer Use Cases

Encoding OAuth2 Redirect URIs & Query Parameters

Ensure nested callback URLs, search filters, and special characters (`?`, `&`, `=`) do not break query string parsing.

// Raw:
https://kodersolution.com/search?q=next.js & laravel

// Encoded component:
https%3A%2F%2Fkodersolution.com%2Fsearch%3Fq%3Dnext.js%20%26%20laravel

Frequently Asked Questions

What is the difference between `encodeURI` and `encodeURIComponent`?

`encodeURI` keeps URL structural characters (`:`, `/`, `?`, `&`) intact for full URLs, whereas `encodeURIComponent` encodes them too so a string can safely live inside a single query parameter.

Why does a space become `%20` vs `+`?

RFC 3986 URL paths and `encodeURIComponent` encode spaces as `%20`, while `application/x-www-form-urlencoded` HTML forms encode spaces as `+`.

View All Tools