URL Encoder and Decoder

Encode and decode URLs and URL components. Convert special characters to percent-encoded format and back.

Configuration

Mode

Select encode or decode mode.

Encoding Type

Component encodes all special characters. Full URL preserves URL structure characters like :, /, ?, &, =, #.

Spaces as +

Encode/decode spaces as + instead of %20 (common in query strings).

Plain Text / URL

Encoded URL

About URL Encoder and Decoder

Encode and decode URLs and URL components using percent-encoding. Special characters like spaces, ampersands, and question marks have reserved meanings in URLs — encoding converts them to %XX sequences so they can travel safely in query strings and paths.

Choose Component mode (encodeURIComponent) for query-string values and path segments, or Full URL mode (encodeURI) to encode a complete URL while preserving its structure. Both directions run instantly and entirely in your browser.

Key Features

  • Component mode using encodeURIComponent / decodeURIComponent
  • Full URL mode using encodeURI / decodeURI
  • Instant two-way conversion
  • Client-side only — URLs are never logged

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes every reserved character, making it right for individual values like query parameters. encodeURI leaves characters that are structurally meaningful in URLs (like /, ?, and &) intact, making it right for encoding a whole URL.

When do I need to URL-encode a value?

Whenever you place user data in a URL — query parameters, path segments, or fragments. Unencoded special characters can break the URL or change its meaning.

What is percent-encoding?

Percent-encoding replaces a character with a % followed by its byte value in hexadecimal — for example, a space becomes %20. It is the standard way (RFC 3986) to represent special characters in URLs.