URL Encode / Decode
Encode or decode strings for safe URLs.
About this tool
URL encoding, also called percent-encoding, turns reserved and unsafe characters — spaces, ampersands, equals signs, hashes, and non-ASCII characters — into a percent-prefixed form such as %20 that travels safely inside a link. You need it whenever you build query strings, deep links, or API calls by hand, because an unencoded space or ampersand will break the URL or change its meaning.
Paste text and press Run to encode it; paste an encoded string into the decode variant to recover the original. The engine is the same one your browser uses (encodeURIComponent / decodeURIComponent), so the results match exactly what your JavaScript or backend code will produce — no surprises between the tester and production. It is fully local, so nothing you paste is uploaded.
Developers use this constantly: constructing share links, building webhook payloads, forming OAuth redirect URIs, and embedding filter state in a URL. Marketers use it when they need to drop a long, symbol-heavy value into a tracking link. Anyone hand-crafting a URL with user input should encode that input first.
A practical distinction worth teaching: encodeURIComponent encodes almost everything (good for values), while encodeURI leaves characters like slash and colon alone (good for whole URLs). This tool uses the component version, which is what you want for query parameters. Decode handles the plus sign as a space, matching form-encoded data.
For AdSense, expand this into a clear explainer: what gets encoded and why, a before/after example, and a short FAQ. Original, accurate technical content is the standard across this toolbox and the reason it is designed to rank and to pass review. The companion HTML and Base64 tools cover adjacent encoding needs.