ReadmeBuddy LogoReadmeBuddy

URL Encoder / Decoder

Encode or decode URLs and query-string components with proper percent-encoding. Handy for building API requests and debugging redirects — runs in your browser.

Runs 100% in your browser — nothing is uploaded.

About the URL Encoder / Decoder

URL encoding (also called percent-encoding) replaces characters that aren't allowed in a URL — like spaces, ampersands, and non-ASCII characters — with a percent sign followed by their hexadecimal code. This ensures URLs and query-string parameters are transmitted correctly across the web.

This tool encodes and decodes URLs and URL components in your browser, with a toggle between encodeURIComponent (for individual query values) and encodeURI (for full URLs).

Features

  • Encode and decode URLs and query-string components
  • Toggle between component and full-URL encoding
  • Handles spaces, special characters, and Unicode
  • Client-side only — safe and instant

How to use

  1. Choose Encode or Decode.
  2. Toggle 'Component' on for a single query value, off for a whole URL.
  3. Paste your text and copy the result.

Frequently asked questions

What's the difference between encodeURI and encodeURIComponent?

encodeURI keeps URL structure characters (like / ? & =) intact, so it's for encoding a complete URL. encodeURIComponent encodes those too, so it's for encoding a single parameter value.