URL Encoder / Decoder

Encode & decode URLs and URIs

ConvertersFreeNo Signup
4.7(768 reviews)
All Tools

Loading tool...

About URL Encoder / Decoder

A browser-based URL encoder and decoder that converts special characters to percent-encoded format and back. Supports both full URL encoding (encodeURI) and component encoding (encodeURIComponent) for query parameters. Handles international characters via UTF-8, detects already-encoded sequences, and provides a breakdown of encoded characters. All processing happens client-side.

URL Encoder / Decoder Features

  • Encode & decode
  • UTF-8 support
  • URI vs component mode
  • Character breakdown
  • Auto-detection
URL encoding replaces unsafe characters in URLs with % followed by their hex value. This tool handles both directions instantly with full UTF-8 support.

How to Use

Choose a mode:

  • Encode: Convert text to URL-safe format
  • Decode: Convert percent-encoded text back

encodeURI vs encodeURIComponent

encodeURI: Preserves structural chars. encodeURIComponent: Encodes ALL special characters.

Common URL Encodings

  • Space → %20
  • & → %26
  • = → %3D
  • # → %23

Step-by-Step Instructions

  1. 1Select Encode or Decode mode.
  2. 2Choose between full URL or component encoding.
  3. 3Paste or type your input.
  4. 4View the result instantly.
  5. 5Copy the output.

URL Encoder / Decoder — Frequently Asked Questions

When should I use encodeURI vs encodeURIComponent?+

Use encodeURI for complete URLs, encodeURIComponent for individual query parameter values.

Why does a space become %20 sometimes and + other times?+

In URL paths, space is %20. In HTML form submissions, space is +. Both are valid in their contexts.

How are international characters encoded?+

Characters are first encoded as UTF-8 bytes, then each byte is percent-encoded. For example, é becomes %C3%A9.

Share this tool: