Percent-encode text for safe use in links and query strings, and decode it back. UTF-8 safe. Runs entirely in your browser.
Uses encodeURIComponent — safest for individual query values and path segments.
What is a URL encoder? A URL encoder converts text into a percent-encoded form that is safe to place inside a web address, or decodes that form back into readable text. This one works in both directions and supports any Unicode characters.
URL encoding, also called percent-encoding, replaces characters that are unsafe or reserved in a URL with a percent sign followed by their hexadecimal byte values. For example, a space becomes %20 and an ampersand becomes %26, so the data travels safely inside a web address.
Paste your text and choose Encode to percent-encode it, or paste an encoded string and choose Decode to turn it back into readable text. This tool runs entirely in your browser using encodeURIComponent and decodeURIComponent.
encodeURIComponent encodes almost every reserved character, so it is correct for a single query value or path segment. encodeURI leaves characters that make up a full URL, such as :/?&#, unencoded, so it is meant for encoding a whole address at once. This tool uses encodeURIComponent because it is the safest choice for individual values.
Yes. encodeURIComponent encodes each character as its UTF-8 bytes, so accented letters, emoji, and other Unicode characters are percent-encoded correctly and decode back to the exact original text.