Code Beautifier

URL Encode & Decode

Encode, decode, or parse URL query strings and percent-encoded query parameters instantly. · Updated

Options
Action:
text
Formatted Outputtext
Draft saved locally.

Options

OptionDescription
ActionSelect whether to decode percent-encoded URLs, encode query strings, or parse query parameters into a JSON object.

FAQ

What is the difference between encodeURI and encodeURIComponent?

`encodeURI` preserves special protocol characters like `://` and `?`, while `encodeURIComponent` encodes all characters including slashes and ampersands for safe query parameter usage.

Can this tool parse URL query parameters into JSON?

Yes. Switch the Action to 'Parse Query Params (JSON)' to inspect all query keys and values as a structured object.

Does this tool handle '+' as spaces in query strings?

Yes. Decoding automatically handles both `%20` and `+` spaces correctly.

Can I decode non-ASCII and international characters in URLs?

Yes. UTF-8 multi-byte percent-encoded characters are decoded smoothly.