IQ
PayloadIQ
← PayloadIQ Utilities

URL Encode / Decode

Encode a string for safe use in a URL, or decode a percent-encoded value.

encodeURIComponent β€” encodes a single query value or path segment
Result appears here.

Runs in your browser. Your input is not uploaded to PayloadIQ.

Percent-encoding makes a string safe to drop into a URL: characters with special meaning β€” like &, ?, =, / and spaces β€” are replaced with % escapes so they are treated as literal data rather than URL syntax. Encode here uses encodeURIComponent and decode uses decodeURIComponent, the same functions your browser and Node runtime use.

One caveat: encodeURIComponent is meant for individual components (a single query value or path segment), not a whole URL β€” it will escape the :, / and ? that give a full URL its structure. Encode each value separately, then assemble the URL around them.

Related utilities

Base64 Encode / DecodeHTML Entity Encode / DecodeJSON Escape / UnescapecURL to FetchURL ParserMorse Code TranslatorText Encrypt & DecryptAny File to Markdown
Open PayloadIQ Playground β†’