---
title: "URL decode"
description: "Decode percent-encoded URL components. Invalid % sequences fail clearly; + stays a literal plus."
---

> HTML: https://trendalyzer.app/tools/url-decode/
> Index: https://trendalyzer.app/llms.txt

# URL decode

URL decode reverses percent-encoding (as produced by `encodeURIComponent`), turning `%XX` hex pairs back into characters. Malformed sequences — a bare `%` or non-hex digits — raise an error instead of returning corrupted text. A plus sign stays a literal plus; normalize form-urlencoded payloads yourself if you need spaces.

Readiness: experimental

Input types: text

Output types: text

## Limits

- Malformed sequences throw.

## Warnings

- This is not a URL validator.

## Example

Input: a%3Db%26c

Output: a=b&c

## Steps

1. **Paste the encoded component** — Drop a query value or path segment that contains `%XX` escapes.
2. **Run locally** — Each validated hex pair becomes a byte; multi-byte UTF-8 sequences reassemble into Unicode characters.
3. **Inspect the plain text** — Copy the decoded string for logs, analytics tags, or deep-link debugging.

## Invalid escapes fail loudly

A trailing `%` or `%ZZ` clears the previous output and shows an error. That prevents silently keeping a stale successful decode on screen.

## Plus signs

`+` is not turned into a space. Normalize form-urlencoded payloads yourself before decoding if you need that behaviour.

## FAQ



### How does URL decoding handle invalid percent sequences?

The decoder strictly validates every '%XX' hexadecimal pair. If an incomplete escape (e.g. trailing '%') or non-hex character (e.g. '%ZZ') is detected, an explicit error is raised and previous output is cleared.

### Does this tool convert plus signs (+) into spaces?

Standard decodeURIComponent treats '+' as a literal plus sign. If decoding application/x-www-form-urlencoded form data where pluses represent spaces, pluses can be normalized prior to percent-decoding.

### Can URL decode reconstruct multi-byte international characters?

Yes. Consecutive percent-encoded byte sequences (such as '%E2%9C%93' for '✓') are reassembled into complete multi-byte UTF-8 code points.
