URL Decoder

Decode URL-encoded text.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a percent-encoded string and read it as normal text. %XX sequences are decoded as UTF-8, and a plus sign is treated as a space, as in query strings.

How to use

1
Step 1
Paste the encoded string.
2
Step 2
Press Run.
3
Step 3
Copy the decoded text.

How it works

Plus signs are first turned into spaces, then the string is passed through decodeURIComponent. This reads multi-byte sequences such as %C3%A9 as one character. A stray % that is not followed by two hex digits makes the string invalid and shows an error.

Worked example

A query fragment

Input
q%3Dcaf%C3%A9+au+lait%26x%3D1
Output
q=café au lait&x=1
Walkthrough
%3D is =, %C3%A9 is é, + is a space and %26 is &.

Limitations

  • Every + becomes a space, including a literal plus in a path, where it would normally stay a plus.
  • Broken sequences like %E0%A4%A stop with an error rather than partial output.

Questions

How do I decode a URL?
Paste the encoded text and press Run to see the readable version.
What does %20 mean?
It is the percent code for a space.
Why do I get Invalid URL-encoded string?
A % is not followed by two valid hex digits, or the bytes are not valid UTF-8.
Does it decode plus signs?
Yes, + becomes a space.

Features

  • UTF-8 sequences
  • Plus to space
  • Clear error on bad input

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • What Is A RESTful API?

    Traversy Media

    URL encoding shows up constantly in query strings and API clients.

    Watch on YouTube
  • Inspect Network Activity - Chrome DevTools 101

    Chrome for Developers

    Debugging payloads you paste into JSON and JWT tools.

    Watch on YouTube