To decode a URL from a QR code, first scan the QR image to extract its URL, then percent-decode the copied string if it contains encoded characters. These are separate jobs: QR decoding recovers the code’s payload, while URL decoding reverses percent-encoded characters inside a web address or one URL component.

Some QR codes already contain a plain, readable URL, so scanning may be all you need. Other codes contain URLs with spaces, non-ASCII text, or escaped delimiters represented as percent triplets. The URL Decoder handles this second stage in your browser. It does not scan or read QR images, so you must extract and copy the URL text first.

decode url from qr code
Decode a URL from a QR Code: Scan and Unescape

Decode a URL from a QR code on your device

Use the following sequence to move from the QR image to readable URL text without opening an unfamiliar destination:

  1. Scan the QR code and extract its payload. Open your phone’s camera or a QR reader, point it at the code, and use the available copy or share function to copy the extracted text. The QR payload may already be a complete URL, but it may also be plain text or another data format.
  2. Check whether the extracted URL needs percent-decoding. Look for a percent sign followed by two hexadecimal digits. If the address is already readable and contains no percent-encoded sequences, copying it is sufficient. If it contains encoded characters, continue with the decoder.
  3. Open the URL Decoder and choose the correct scope. Select Full URL when you copied an entire web address. Select URL component when you copied one query value, path segment, or fragment. This choice determines whether URL structure remains intact or the isolated text is treated as data.
  4. Select Decode. Decode reverses percent-encoding and turns encoded text back into readable characters. Encode performs the opposite operation, converting plain text into percent-encoded form.
  5. Paste the extracted text into the input box. The result updates as you type. For example, if the scanned address is https://example.com/search?q=caf%C3%A9%20special, Full URL mode produces https://example.com/search?q=café special while preserving the address separators. If you copied only caf%C3%A9%20special as a single query value, URL component mode produces café special.
  6. Review the result before using it. Confirm that the readable text matches what you expected. Click Copy to place the decoded result on your clipboard, ready to inspect, paste into an application, or place in a request.
  7. Correct the source if an error appears. A malformed percent sequence stops decoding and reports the problem. Return to the original QR scanner result, obtain the complete text, and try again rather than guessing at missing characters.

Keep QR extraction and URL decoding separate

A QR code stores data, while a URL decoder transforms text. Confusing the two can lead to the wrong tool or an inaccurate expectation about what the result means. The following comparison shows where each operation belongs.

Stage Input Result Main limitation
Phone camera or QR reader QR image The payload stored in the code Retrieving the payload does not necessarily reveal readable percent-encoded text
URL Decoder in Full URL mode A complete encoded address A readable URL with its structure retained It does not scan a QR image or reconstruct a missing payload
URL Decoder in URL component mode One encoded value, segment, or fragment Readable text for that isolated component It is not a query-string parser or URL extractor

The privacy guarantee also applies to a specific stage. After you copy URL text into the URL Decoder, that text is processed locally in your browser and is not uploaded. The separate camera or QR reader that handled the image may have its own privacy policy, so review that service separately when the QR image contains sensitive information.

Match the scope to the text you copied

Full URL mode is designed for a complete address. It keeps structural characters such as colons, slashes, question marks, and hashes in place while making unsafe characters readable. URL component mode is designed for one isolated piece of a URL. When encoding in this mode, reserved characters—including ampersands, equals signs, slashes, question marks, and hashes—are escaped so they cannot be mistaken for surrounding URL delimiters.

What you copied Recommended mode Why
Complete address, including scheme, domain, path, and query Full URL Preserves the address as a structured web link
One query-string value URL component Treats the value as isolated data rather than part of the URL structure
One path segment URL component Decodes the segment without treating an encoded slash as a path divider
One fragment URL component Returns the fragment as readable text rather than part of a complete address

Do not paste a complete address into URL component mode merely to make it look readable. In component mode, reserved characters are treated as data, so decoding the entire address can change how its structure appears. Conversely, use Full URL mode when you want to inspect the complete link without flattening its structure.

If the QR payload contains another URL stored inside a query parameter, first copy that parameter’s value separately, then use URL component mode to reveal the nested address. The decoder does not automatically identify or extract individual parameters for you.

Percent-encoding is part of the URI syntax defined by RFC 3986. The tool uses the browser’s built-in encoding and decoding methods, including the component behavior documented in Mozilla’s encodeURIComponent() reference. For a further comparison of the two operating modes, see URL component versus full URL mode.

Interpret malformed-input errors

A decoding error means the supplied text is not valid percent-encoding. The URL Decoder deliberately stops instead of returning a partially corrupted string, giving you a chance to fix the source data.

Malformed input Reason Safe response
A lone percent sign No two-digit hexadecimal value follows it Recover the complete original string instead of deleting the percent sign
A sequence such as %zz The characters after the percent sign are not valid hexadecimal digits Correct the source or obtain a clean scan
A truncated multi-byte sequence One or more required UTF-8 continuation bytes are missing Re-copy or re-scan the complete payload; the missing characters cannot be inferred

Multi-byte characters can span several percent triplets, so a cut-off sequence cannot be repaired by adding an arbitrary final triplet. Start from the authoritative source when possible. If the QR reader truncated the payload, scan it again with a reader that displays and copies the complete result.

Do not confuse a decoding error with a scope mistake. If the output exposes unexpected delimiters, confirm that you selected URL component rather than Full URL. The tool reports invalid encoding precisely; it does not decide which part of a larger address you intended to inspect.

Decide when percent-decoding is unnecessary

Not every QR payload requires the decoder. The following distinctions can prevent unnecessary work:

  • The extracted URL is already readable. If it contains no percent-encoded characters, copying and checking the address is enough.
  • The QR code contains plain text. A code can store text that is not a URL, so percent-decoding would not turn it into one.
  • The complete address is the object you need. Use Full URL mode so delimiters and the overall structure remain meaningful.
  • Only one field matters. Copy that query value, path segment, or fragment and use URL component mode.
  • The payload appears incomplete. Decoding cannot recover characters that were never captured. Fix the scan or source first.

URL decoding is also different from shortening, redirect resolution, or opening a link. It only reverses percent-encoding. If a QR code points to a redirect service, the decoder can reveal encoded text in that address, but it does not follow the redirect or determine where the destination ultimately leads.

Check the result before opening it

Decoded text is for inspection and reuse, not automatically proof that a destination is trustworthy. Before opening a QR link or inserting its content elsewhere:

  • Compare the scheme and domain with the service you expected to visit.
  • Look for unusual hosts, shortened addresses, login prompts, or payment requests before continuing.
  • Check whether decoded reserved characters are intended as data. If an isolated value will be placed back into a URL, encode that value in URL component mode again.
  • Keep sensitive tokens, internal URLs, and personal data in the locally processed URL Decoder workflow. Once loaded, the tool requires no account and continues processing text without sending it to a server.

The reliable sequence is therefore: scan the QR image, copy the payload, choose the scope that matches the text, select Decode, and inspect the result or error before using it. This separates QR extraction from percent-decoding and keeps each step accountable.

Related reading: UTF8 Decode JavaScript: Strict Bytes-to-Text Guide.