URL Encoder & Decoder

Encode and decode URLs, query strings, and URI components. Supports encodeURIComponent, encodeURI, and full URL parsing.

100% Client-SideNo Data Sent to ServerFree, No Signup
0 chars

Quick Examples

Simple Text
Hello World! How are you? → Hello%20World!%20How%20are%20you%3F
URL with Spaces
https://example.com/search?q=hello world&lang=en
Query Parameters
email=user@example.com&redirect=https://mysite.com/callback
JSON in URL
{"name":"John","age":30} → %7B%22name%22%3A%22John%22...
File Path
file:///C:/Users/Documents/My File (1).txt
Unicode / Accents
Cafe Resume naive uber → %C3%A9, %C3%BC, %C3%9F...

Common URL Encodings

CharacterEncodedDescription
(space)%20Space character (or + in forms)
!%21Exclamation mark
#%23Hash / fragment
$%24Dollar sign
&%26Ampersand (query separator)
'%27Single quote
(%28Open parenthesis
)%29Close parenthesis
+%2BPlus sign
,%2CComma
/%2FForward slash (path separator)
:%3AColon
=%3DEquals (query key=value)
?%3FQuestion mark (query start)
@%40At sign
[%5BOpen bracket
]%5DClose bracket
{%7BOpen brace
}%7DClose brace

encodeURI vs encodeURIComponent

encodeURIComponent

Encodes everything except: A-Z a-z 0-9 - _ . ~ ! ' ( ) *

Use when encoding a value that will be part of a URL (query param values, path segments).

encodeURIComponent("a=b&c=d")
Result: a%3Db%26c%3Dd

encodeURI

Preserves URL structure chars: : / ? # [ ] @ ! $ & ' ( ) * + , ; =

Use when encoding a complete URL that may have spaces or unicode but should remain navigable.

encodeURI("https://x.com/a b")
Result: https://x.com/a%20b

Need URL encoding in your API?

Agent Gateway provides 40+ APIs for AI agents and developers. Web scraping, screenshots, crypto data, code execution, and more.

Get Free API Key (50 free/day)

More Developer Tools

Base64 Encoder Hash Generator JSON Formatter JWT Decoder Regex Tester Password Generator Timestamp Converter DNS Lookup IP Geolocation Domain Checker Crypto Prices Screenshot Tool View All Tools