DevOnlineTools

URL Encoder & Decoder

Encode text and web links into percent-encoded URL formats or decode encoded URI components back to readable plain text with live input conversion.

devonlinetools://encoding/url-encoder-decoder
⌘ + EnterRun / Format
Shortcuts Active

encodeURIComponent()

Encodes everything — safe for query params

https%3A%2F%2Fdevonlinetools.app%2Fsearch%3Fquery%3Dhello%20world%26lang%3Den%26filter%3D100%25

encodeURI()

Preserves URL structure (scheme, host, path)

https://devonlinetools.app/search?query=hello%20world&lang=en&filter=100%25

Code Snippets & Examples

Copy-paste ready code implementations for your project:

JavaScript
// Encode query parameter
const param = encodeURIComponent('hello world & test=100%');

// Decode
const raw = decodeURIComponent(param);
Python 3 (urllib)
from urllib.parse import quote, unquote

encoded = quote('hello world & test=100%')
decoded = unquote(encoded)

Frequently Asked Questions

What is URL encoding?

URL encoding (also known as percent-encoding) converts characters into a format that can be transmitted safely over the Internet in URLs. Unsafe characters are replaced with % followed by two hexadecimal digits.

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves special URL syntax characters like :, /, ?, # so the full URL remains valid. encodeURIComponent encodes ALL special characters including :, /, ?, # so the string can be safely passed as a single query parameter value.