Skip to main content

RFC 3986 URL Decoder & Parameter Extractor

Rate this tool 0 of 0 ratings
Additional page content: Editable from the admin panel -> tools content.

Programmatic Code Snippets: URL Decode String

How to implement URL Decode String programmatically in Python, Node.js, PHP, and CLI
CLI & API Syntax
URL decode percent-encoded string in Python 3
import urllib.parse

encoded = "Hello%20World%20%26%20Toolbox24%20%231"
decoded = urllib.parse.unquote(encoded)
print(decoded) # Output: Hello World & Toolbox24 #1
Decode URL string in JavaScript / Node.js
const encoded = "Hello%20World%20%26%20Toolbox24%20%231";
const decoded = decodeURIComponent(encoded);
console.log(decoded); // Output: Hello World & Toolbox24 #1
URL decode string in PHP
<?php
$encoded = "Hello%20World%20%26%20Toolbox24%20%231";
echo rawurldecode($encoded);
URL decode in Bash using Python one-liner
python3 -c "import urllib.parse, sys; print(urllib.parse.unquote(sys.argv[1]))" "Hello%20World%20%26%20Toolbox24%20%231"
Embed
Need this Url Decoder calculator on your website, lab portal, or research blog?
Free HTML Widget 100% Responsive Zero Cookie Tracking
Notice a calculation discrepancy, rounding error, or glitch?
Help us maintain 100% scientific precision and report any issues directly to engineering.