Percent-encode text so it’s safe in URLs and query strings, or decode an encoded URL back to readable text.
Input
Result
Paste the text or URL into the input box.
Click Encode to make it URL-safe, or Decode to read an encoded URL.
Copy the result into your link, API call or query string.
URL (percent) encoding replaces characters that aren’t allowed in URLs — like spaces, &, ? and non-English letters — with % followed by their hex code, for example a space becomes %20.
Whenever you put user text into a query string or path — search terms, redirect URLs, email addresses — so characters like & and = don’t break the URL.
Everything except letters, digits and - _ . ! ~ * ' ( ). This matches JavaScript’s encodeURIComponent, the right choice for query-string values.