Skip to main content

URL Encoder / Decoder

Encode or decode URLs and query strings instantly. Supports encodeURIComponent, encodeURI, and full URL decoding.

Features

Everything you need to work with URL-encoded strings.

Instant Encoding

Encode text using encodeURIComponent for safe use in query parameters, form values, and URL fragments.

Full URL Support

Use encodeURI to encode a complete URL while preserving the protocol, host, path separators, and other structural characters.

Special Character Handling

Correctly handles ampersands, spaces, Unicode characters, and all reserved URI characters with proper percent-encoding.

Multiple Modes

Choose between encodeURIComponent, encodeURI, or full URL decode depending on your use case.

How It Works

Three simple steps to encode or decode any URL string.

1

Paste Your Text

Enter a raw URL, query string, or encoded text into the input area on the left.

2

Choose an Action

Click Encode, Decode, or Encode Full URL. Or enable auto-mode and results update as you type.

3

Copy the Result

The processed string appears in the output area. Click Copy to save it to your clipboard.

Related Tools

More tools to help you debug and analyze web requests.

Frequently Asked Questions

Common questions about URL encoding and decoding.

URL encoding (also called percent-encoding) converts characters that are not allowed in a URL into a format that can be safely transmitted. Each unsafe character is replaced with a percent sign (%) followed by two hexadecimal digits representing its byte value. For example, a space becomes %20 and an ampersand becomes %26.

encodeURI encodes a full URL but leaves structural characters intact — like ://?#[]@ and others that have special meaning in a URL. encodeURIComponent encodes everything except letters, digits, and a handful of unreserved characters (- _ . ! ~ * ' ( )). Use encodeURIComponent for individual query parameter values and encodeURI when encoding an entire URL.

No. All encoding and decoding happens instantly with zero server communication. Your URLs and query strings are never transmitted anywhere.

A decoding error typically means the input contains a malformed percent-encoded sequence — for example, a lone percent sign (%) not followed by two hexadecimal characters, or an invalid UTF-8 sequence. Double-check your input string for stray percent signs or truncated encoded characters.