URL Encode

Percent-encode and decode URLs and query strings

Use the interactive tool with JavaScript enabled.

About this tool

Encode text for safe use in URLs by converting special characters to percent-encoded %XX sequences. Decode encoded URLs back to human-readable form instantly. Supports both encodeURIComponent mode (also encodes /, ?, and &) and full URL encoding. Useful for building query strings, debugging HTTP redirects, working with REST APIs, and encoding path segments that contain spaces or special characters.

Questions and answers

What is the difference between URL encoding and encodeURIComponent?
encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ( ), making it safe for query string values. Full URL encoding preserves characters like / and ? that have structural meaning in a URL.

Related tools

  • URL Inspector — Parse and inspect URL components and query params
  • Escape / Unescape — Escape and unescape HTML, JS, JSON, and URL strings
  • Base64 — Encode and decode Base64 strings and files

Tool processing runs in your browser. Privacy policy and cookie preferences.

Read this guide as Markdown