Free Online URL Encoder / Decoder

Encode special characters for safe URLs or decode percent-encoded strings. Handles Unicode and full URI components.

Input
Output

How to Use This URL Encoder

Paste a URL or text string above and click Encode or Decode. All processing runs in your browser using native JavaScript functions.

What is URL encoding?

URL encoding replaces unsafe characters with percent-encoded equivalents (e.g. space becomes %20). This ensures URLs are valid and transmitted correctly.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but preserves characters like : / ? # @. encodeURIComponent encodes everything except letters, digits, and - _ . ~ making it ideal for query parameter values.

Is my data stored?

No. All encoding and decoding happens locally in your browser. Nothing is sent to any server.