Developer ToolsEncoders & DecodersFree Tool

URL Encoder

Percent-encode text for safe use in URLs, or decode it back, using the native encodeURIComponent/decodeURIComponent functions.

How to Use URL Encoder
  1. 1Paste your text or URL component
  2. 2Select Encode or Decode
  3. 3Click Process
  4. 4Copy the result
Frequently Asked Questions

Everything that JavaScript's native encodeURIComponent() encodes — spaces, &, ?, #, /, and other characters reserved in URLs — converted to their %XX percent-encoded form.

It uses encodeURIComponent, meant for individual URL components (a query parameter value, a path segment) — it will also encode characters like / and : that you might want preserved in a full URL. For encoding an entire URL while preserving its structure, encode only the specific parts that need it.

Yes — switch to the Decode tab to run decodeURIComponent instead.

No — encoding happens entirely in your browser.

Related Tools

Related Articles

More from Developer Tools