Loading...

URL Encoder & Decoder Online — Encode URLs and Query Strings

Encode any string to a URL-safe (percent-encoded) format, or decode an encoded URL back to readable text. The tool handles full URLs, query parameters, and individual path segments, and supports both `encodeURI` (preserves reserved characters) and `encodeURIComponent` (encodes them) modes. Everything runs in the browser, so it is safe to use with sensitive tokens, signed URLs, and API keys.

Features

  • Two encoding modes

    Switch between encodeURI for whole URLs and encodeURIComponent for individual parameters.

  • Batch & query mode

    Encode every query-string value in a URL in one pass without touching the keys or separators.

  • Decode broken links

    Paste a mangled or double-encoded URL and recover the original characters.

  • Private by default

    No upload — your URLs and tokens never leave the browser.

How to URL-encode a string online

Convert any text to or from percent-encoded URL form.

  1. Choose directionPick Encode (raw → percent-encoded) or Decode (percent-encoded → raw).
  2. Pick the modeUse encodeURIComponent for individual parameter values, encodeURI for full URLs.
  3. Paste your inputDrop the URL or string into the input box. The result appears instantly.
  4. Copy and useUse the copy button to paste the encoded string into your request, cURL command, or browser.

Examples

Encode a query value

Input
hello world & friends
Output
hello%20world%20%26%20friends

Decode a percent-encoded path

Input
/search/caf%C3%A9%20central
Output
/search/café central

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL reserved characters (`:`, `/`, `?`, `&`, `#`) so it is safe for whole URLs. encodeURIComponent encodes those same characters, making it the right choice for individual query parameter values.
Why does a space become `%20` sometimes and `+` other times?
`%20` is the canonical URL encoding for a space. `+` is the legacy encoding used inside `application/x-www-form-urlencoded` bodies and many query strings — most servers accept both, but `%20` is safer.
Can I encode an entire URL with query parameters?
Yes. Use encodeURI mode to encode the whole URL while keeping the structure intact, or use the query mode to encode every parameter value individually.
My encoded URL still does not work. What now?
Common causes: double-encoding (decode first, then re-encode), missing scheme (`https://`), or special characters in the path that need encodeURIComponent rather than encodeURI.
Is the tool safe for signed URLs and API keys?
Yes. All work happens locally in your browser — nothing is uploaded, logged, or cached on any server.