URL Encoder / Decoder

Percent-encode special characters, decode encoded strings, or paste a full URL to inspect and edit its parts. Everything runs in your browser.

Input

0 chars
Encoding type

encodeURIComponent — best for query values

Output

0 chars

Common URL encoding scenarios

Real-world places where percent-encoding matters.

Search query strings

Encode user search terms (spaces, &, =) before appending them to ?q= so they don't break the URL.

Sharing links with params

Encode titles, names, or messages safely when generating share URLs for social platforms.

Redirect & callback URLs

OAuth and SSO require redirect URLs to be percent-encoded when passed as a query parameter.

Filters in REST APIs

Encode special characters in filter values (e.g. email addresses, plus signs) so APIs parse them correctly.

InputEncoded
hello worldhello%20world
a&b=ca%26b%3Dc
cafécaf%C3%A9
user@example.comuser%40example.com
<script>&lt;script&gt; (HTML)

Related tools

Frequently asked questions