Skip to main content
DevTool House

URL Encoder / Decoder

URL encoder decoder

About URL Encoder / Decoder

Encode special characters into percent-encoded format for safe use in URLs, query parameters, and API calls — or decode percent-encoded strings back to plain text.

Last reviewed

October 20, 2026

Key Features

  • Encodes special characters to percent-encoded equivalents
  • Decodes percent-encoded strings back to plain text
  • Handles query parameters, path segments, and full URL components
  • Instant results, nothing to install
  • Useful for API development and web debugging

How to Use URL Encoder / Decoder

  1. 1Choose encode or decode mode.
  2. 2Paste the URL component or text to process.
  3. 3Run the conversion and review the encoded or decoded output.
  4. 4Copy the result for use in API requests, code, or browser navigation.

API query parameter example

To pass "New York & Co" as a URL query parameter value, encode it first to "New%20York%20%26%20Co". Without encoding, the & character is interpreted as a query string separator, breaking the parameter.

What the encoder changes, with examples

Encoding works on one URL component at a time. Every character except letters, digits and - _ . ! ~ * ' ( ) is replaced by a % sign and two hexadecimal digits for each of its UTF-8 bytes. A space becomes %20, & becomes %26 and a slash becomes %2F.

Because :, / and ? are encoded too, encoding a complete URL makes it unusable as a link, which is the point when the URL is a value inside another URL. To build a normal link, encode only each parameter value, then join the pieces with unencoded ? = and &.

A query parameter value
Input:    New York & Co
Encoded:  New%20York%20%26%20Co
URL:      https://example.com/search?q=New%20York%20%26%20Co
A URL nested inside another URL
Input:    https://example.com/a?b=1
Encoded:  https%3A%2F%2Fexample.com%2Fa%3Fb%3D1

Common Problems and Fixes

%2520 appears in the result
The text was encoded twice: the % of an existing %20 was encoded again as %25. Decode once to check, and encode values only once, right before they go into the URL.
+ is not turned into a space when decoding
Here + is decoded literally. A + means a space only in HTML form encoding (application/x-www-form-urlencoded). If your input came from a form submission, replace + with %20 first.
"Invalid URL-encoded string" error
A % sign is not followed by two valid hexadecimal digits, as in 100% or %zz. Encode a literal percent sign as %25.
! * ' ( ) are left unchanged
These characters are left as they are, matching JavaScript's encodeURIComponent. Most servers accept them. If a strict system needs them encoded, replace them with %21, %2A, %27, %28 and %29.

How It Works

The encoder converts characters outside the allowed URL character set to their percent-encoded equivalents (for example, space becomes %20 or +). The decoder reverses this process by replacing percent sequences with their original characters.

Privacy Notes

Input is sent to DevTool House servers to encode or decode it and is not stored once the result is returned. Avoid encoding long session tokens or sensitive query parameter values through any online tool.

Limitations

This tool encodes and decodes text components. It does not validate complete URL structure, check reachability, or parse URL segments (scheme, host, path, query) independently.

Frequently Asked Questions