Free Online URL Encoder and Decoder

Encode text and URLs to URL-safe format and decode URL-encoded strings instantly. Handle special characters, spaces, Unicode and symbols correctly.

URL Encoder / Decoder

Paste URL or text and click Encode URL.
Paste URL-encoded text and click Decode URL.

This tool runs in your browser. Your data is not stored or uploaded.

What is URL encoding?

URL encoding, also known as percent encoding, converts special characters and spaces into a format safe for URLs. Each character is replaced with a percent sign (%) followed by its hexadecimal ASCII value. For example, a space becomes %20. URL encoding ensures that URLs remain valid and can be transmitted safely across networks.

URL encoding examples

  • Space: " " → %20
  • Question mark: "?" → %3F
  • Ampersand: "&" → %26
  • Hash: "#" → %23
  • Equals: "=" → %3D

Common uses for URL encoding

  • Query string parameters in URLs
  • Form data submission
  • API request parameters
  • Encoding special characters in URLs
  • Email addresses in URLs
  • Search queries and filters

How to use this URL converter

  1. Choose the Encode tab to convert text to URL-safe format, or the Decode tab to convert URL-encoded text back to normal.
  2. Paste your URL or text into the input field.
  3. Click the Encode URL or Decode URL button.
  4. The output appears in the output field. Use Copy to copy it to your clipboard.

Frequently asked questions

Why do spaces become %20?

URLs cannot contain spaces. They are replaced with %20, which is the hexadecimal representation of the space character's ASCII value (32 in decimal).

Do I need to encode the entire URL?

Only the query parameters and path components need encoding. The protocol (http://), domain name, and slashes (/) that separate components should not be encoded.

What is plus encoding?

In query strings, spaces are sometimes encoded as + instead of %20. Both are valid and automatically decoded to spaces. This tool uses %20 for consistency.