URL Decode and Encode

Paste an encoded URL to turn %20 and the other codes back into readable text, or pick Encode to make any text safe for a link.

Convert
DecodeEncode

Codes like %20 to text

Encode as
Part of a URLWhole URL

Both are read when decoding

Spaces
%20+

A + is read as a space

Encoded URL or text

Paste an encoded link or text, or open a .txt file.

The decoded text shows here as you paste, ready to copy or download.

Decode URL online to plain text and read each query parameter, or URL encode text, a full link or one value inside it.

Free with no sign-up and no limit, for tracking links, API calls, redirects, form data and links that look broken.

  • Reads every parameter in a link
  • %20 or + for spaces
  • Spots links encoded twice

How to decode a URL

Decode an encoded link, read its parameters and encode new text for a URL in three steps.

  1. Paste a URL to decode

    Paste an encoded link or any text with codes like %20 and %3A into the left box. The plain text shows on the right.

  2. Read URL parameters

    Open Parts to see the link split up: protocol, host, path and every query parameter with its value decoded.

  3. Encode text for a URL

    Pick Encode and type. Choose Part of a URL for one value or Whole URL for a full link, then %20 or + for spaces.

How percent encoding works

In a URL, only letters, digits and the marks - . _ ~ are safe everywhere. Any other character can be written as a percent sign and two hex digits, the number of its byte. A space is byte 32, or 20 in hex, so it becomes %20; a slash becomes %2F and a colon %3A.

Letters outside English go through UTF-8 first, so one character can need several codes: é is %C3%A9 and the 👋 emoji is %F0%9F%91%8B. The decoder joins those bytes back into the character. Old links written in Windows-1252, where é is a lone %E9, are read too and marked.

Characters such as ? & = and # give a URL its shape, so they stay as they are in a whole address but must be encoded inside a value. A search for fish & chips sent as ?q=fish & chips splits in two; ?q=fish%20%26%20chips arrives in one piece.

Encode a full URL or one value

Part of a URL works like JavaScript's encodeURIComponent: it encodes everything except letters, digits and - _ . ! ~ * ' ( ), so the result is safe to drop into a query value, a path segment or a redirect link carried inside another URL.

Whole URL works like encodeURI: it keeps : / ? # & = and the other marks that build the address, and encodes only spaces, quotes and letters outside English. A %XX code already in the link is left alone, so nothing is encoded twice.

Spaces can be written as %20 or as +. Web forms send + (application/x-www-form-urlencoded) and PHP's urlencode does the same, while a path needs %20. Pick + and the decoder reads + as a space too; pick %20 and a + stays a plus sign.

URL encoder and decoder features

  • URL codes table

    The Codes tab lists every %XX code in your text with the character it stands for, such as %26 for &.

  • URL parser

    Paste a full link to see its protocol, host, port, path, hash and every parameter, each decoded.

  • Special characters

    Encode & = ? # / + and quotes inside a value, or keep them where they build the address of a link.

  • UTF-8 and emoji

    Accents, Chinese, Arabic and emoji become UTF-8 bytes when encoded and return as the same letters.

  • Double encoded URLs

    A link encoded twice shows %2520 for a space. The tool spots it; Decode again peels off one layer.

  • Broken codes flagged

    A % without two hex digits stays as it is and its line is named, instead of a URI malformed error.

Is this URL decoder safe?

Every link is decoded and encoded on your device. Nothing is sent to a server, logged or shared.

  • Processing

    Decoding, encoding and the Parts view run in this browser tab, so tokens in your links stay private.

  • Storage

    Only the text you type is kept, in this browser, for your next visit. Clear removes it at once.

  • Account

    A free URL decoder and encoder with no sign-up, no email and no cap on how many links you decode.

URL encoding questions

What is URL encoding?

A way to write characters a URL cannot hold, like spaces or &, as % and two hex digits, so the link reaches the server intact.

What does %20 mean in a URL?

It is a space. 20 is hex for 32, the byte of a space, so a file named my report.pdf shows in a link as my%20report.pdf.

How do I decrypt a URL?

Paste it above. URL encoding is not encryption and has no key, so decoding turns %3A, %2F and the rest back into : and / at once.

How do you encode a space in a URL?

Write %20 in a path, and %20 or + in a query string. Form data and PHP's urlencode use +; encodeURIComponent uses %20.

How do I URL encode in JavaScript?

Call encodeURIComponent(text) for one value and encodeURI(url) for a whole link. decodeURIComponent(text) turns it back.

How do I URL encode in Python?

Import urllib.parse, then call quote(text), or quote_plus(text) for + spaces. unquote(text) and unquote_plus decode it again.

What does %2F mean in a URL?

%2F is a forward slash. It is encoded when a / sits inside a value, such as a redirect link, so it is not read as a folder break.

What characters are safe in a URL?

A to Z, a to z, 0 to 9 and - . _ ~ never need encoding. Reserved marks such as / ? # & = are safe only where they build the URL.

Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.