Tools / URL Encoder and Decoder

URL Encoder and Decoder

Percent-encode strings for safe URLs or decode encoded values back to plain text. Switch between component and full URL modes.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI is for full URLs and keeps characters like / and ? intact. encodeURIComponent encodes every reserved character and is meant for query values.

When should I URL-encode text?

Encode user input before placing it in query strings, form fields, or API requests so spaces and special characters do not break the URL.

Why did decoding fail?

The input may contain invalid percent sequences (like a lone %). Fix or remove malformed escapes and try again.

Let's build something you're proud of

I help businesses launch, optimize and maintain their online presence, from code to SEO.

Let's talk

Related tools