AmpCub TOOLS
AmpCub site ↗
Privacy: Files never leave your browser.

DEVELOPER · AmpCub developer helper

URL encode & decode

Safely encode query pieces, or decode them back to readable text.

Encode or decode query text with encodeURIComponent or encodeURI.

Local · no upload

Work area

Component mode encodes reserved characters. Full URI mode leaves them intact. + becomes a space when decoding in component mode.

Limits & privacy

Frequently asked questions

Is a space encoded as %20 or +?

Always %20 here. In component mode, + is decoded back to a space.

When should I use encodeURIComponent?

For a single parameter value, a path segment, or a URL nested inside another URL.