JSONHack
Validator · Formatter · Base64
Encoder / Decoder Tool

URL Encoder & Decoder

Encode text or URLs using percent-encoding (also called URL encoding) to make them safe for use in query strings, form data, and HTTP requests. Or decode a percent-encoded URL back to its original readable form. All processing is instant and happens entirely in your browser.

Input — Text to Encode
Special characters like spaces, &, =, ?, # will be percent-encoded
Output

URL Encoding Modes Explained

Encode URL (encodeURIComponent)

Encodes all special characters except A–Z a–z 0–9 - _ . ! ~ * ' ( ). Use this for encoding individual query parameter values.

Decode URL (decodeURIComponent)

Converts percent-encoded sequences like %20 back to their original characters. Use this to read encoded URLs.

Encode Full URL (encodeURI)

Encodes a complete URL but preserves characters that have special meaning in URLs like : / ? # [ ] @ ! $ & ' ( ) * + , ; =

When to Use Which

Use encodeURIComponent for query values. Use encodeURI for full URLs. Use decode to read any encoded URL.

Common Percent-Encoded Characters

CharacterEncodedDescription
Space%20Most common encoding needed
&%26Separates query parameters
=%3DAssigns query parameter values
+%2BPlus sign in query strings
/%2FPath separator
?%3FStarts query string
#%23Fragment identifier
@%40Used in email and auth URLs

Why URL Encoding Matters

Also need Base64 encoding?

Use the Base64 tab on the main JSON tool for Base64 encode/decode.

Open Base64 Tool →