URL Encode / Decode
Encode or decode strings for safe URLs.
About this tool
The short answer
Characters that are not safe in a URL are replaced with a percent sign and two hexadecimal digits — a space becomes %20, a slash becomes %2F. Encoding is what makes arbitrary text survivable in a query string.
What it depends on
The one rule that causes real bugs: encode each component separately, never the whole URL at once, or the slashes and colons get escaped too. Form encoding uses + for spaces while path encoding uses %20.
Where this stops being useful
It escapes text; it does not check whether the resulting URL exists or is correct. Decode with the matching decoder, not by hand.
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.
The rule that prevents most URL bugs: encode each component separately. Encode the path segment, the query value and the fragment on their own, then join them with the reserved characters — slashes, colons, question marks, ampersands — left intact. Encoding a whole URL in one pass escapes those separators too, and the result is a valid URL that points somewhere else entirely.
Unreserved characters — letters, digits, hyphen, period, underscore and tilde — never need encoding. Everything else technically can be, but the practical list is short: spaces, quotes, angle brackets, percent signs themselves, and non-ASCII characters. If you find yourself encoding half the alphabet, the value probably belongs in a POST body rather than a query string.
Watch for double encoding when data passes through more than one system. A percent sign encoded once becomes %25; encoded twice it becomes %2525, and decoding once leaves the double-encoded form behind. If a search box shows %20 in the results, something in the chain encoded a string that was already encoded.
Frequently asked questions
- Is URL Encode / Decode free?
- Yes. URL Encode / Decode on FreeKitOnline is free, needs no sign-up, and runs entirely in your browser — nothing you type is uploaded to a server.
- What does URL Encode / Decode do?
- Free online URL encoder and decoder. Make text safe for query strings and reverse it, all in your browser.
- Is my data private when I use URL Encode / Decode?
- Yes. URL Encode / Decode processes everything locally in your browser. We do not receive, store or log what you enter.
Every tool on this site is computed entirely in your browser — nothing you type is uploaded to a server. The information on each page is general information only and is not medical advice.