Encode special characters in URLs (percent-encoding) or decode them.
All Characters (encodeURIComponent) encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value that goes inside a URL, such as a search term or a parameter, so characters like &, = and / don't break the link. 'fish & chips' becomes fish%20%26%20chips.
Full URL only (encodeURI) leaves the characters that give a URL its structure (: / ? # & =) alone and encodes the rest, such as spaces and accented letters. Use it on a whole address you want to make valid without changing its meaning.
Spaces may appear as %20 or, in data sent from HTML forms, as +. This tool decodes %20 but leaves + as it is, so if your text came from a form, replace + with spaces afterwards. If a string is broken, such as a % without two hex digits after it, you'll see an error instead of garbled output.
It's an encoded space. Every %XX is a character written as its hexadecimal byte value.
encodeURI keeps URL punctuation like / ? & intact; encodeURIComponent encodes it too, which is right for single values.
Standard URL decoding treats + as a plus sign. Form-encoded data uses + for spaces, so swap them yourself in that case.
Yes. Characters are encoded as UTF-8 bytes, so Hindi, emoji and accented letters work.
OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.