env.dev

URL Encode / Decode

Encode and decode URLs online. Percent-encoding and decoding for query strings.

Input
Output

How to Use URL Encode / Decode

  1. 1Select "Encode" or "Decode" mode using the toggle.
  2. 2Paste your URL or text into the input field.
  3. 3The encoded or decoded result appears instantly.
  4. 4Click "Copy" to copy the result to your clipboard.

Frequently Asked Questions

What is URL encoding (percent-encoding)?

URL encoding replaces unsafe or reserved characters with a percent sign followed by two hex digits (e.g. a space becomes %20). This ensures URLs are transmitted correctly over the internet.

Which characters are percent-encoded?

Characters outside the unreserved set (A-Z, a-z, 0-9, "-", "_", ".", "~") are encoded. Reserved characters like &, =, ?, and # are also encoded when they appear inside query values.

When should I URL-encode a string?

URL-encode any value you place in a query parameter, path segment, or fragment that may contain spaces, special characters, or non-ASCII text. This prevents broken links and ambiguous parsing.

Is my data sent to a server?

No. All encoding and decoding happens locally in your browser. Your data never leaves your device.