URL Encode / Decode

Percent-encode or decode a URL component.

When To Use URL Encoding

URL encoding keeps special characters safe inside query strings and path segments. It is especially useful when values include spaces, punctuation, or symbols.

Related tools: JSON Formatter, HTML Encoder, and JWT Decoder.

URL Encoder FAQ

Should I encode a full URL or just a parameter value?

Usually encode only parameter values. Encoding a full URL can encode separators like : and /, which is often not what you want.

Why does decode fail with malformed URI errors?

This happens when percent-encoded sequences are incomplete or invalid, like a trailing % or non-hex characters after it.

Is URL encoding the same as Base64?

No. URL encoding makes text URL-safe, while Base64 converts data into ASCII text format.