Tool for decoding URLs with percent encoding (URL encoder/decoder) with replacement of %00 and decomposition the various elements of the URL (domain, path, query, etc.)
URL Decoder - dCode
Tag(s) : Internet, Character Encoding
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Tool for decoding URLs with percent encoding (URL encoder/decoder) with replacement of %00 and decomposition the various elements of the URL (domain, path, query, etc.)
A URL can only be composed of a limited number of characters: 10 digits (0-9), 26 lowercase letters (az), 26 uppercase letters (AZ), and some special characters' - ,. , _ , ~ ,? , # ,% '
To write other characters, use URL encoding, writing them with the character % as %code.
A URL can be split down into several parts:
Example: here (link)
Scheme | http or https |
Host | google.com |
Port (optional) | 80 or 443 |
User (optional) | |
Pass (optional) | |
Path | /search |
Query (after the "?") | q=test&hl=en |
Fragment (after "#") | id |
The contents of the query string (query_string) can also be decomposed
Example: q=test&hl=en has 2 parameters, q which has the value test and hl which has the value en
This work is usually done by a URL parser, present on browsers, and on this dCode page.
By default in a URL, only alphanumeric characters (letters and numbers) are allowed as well as a short list - _ . ! ~ * '(). All other characters must be encoded with a %. An exception for the space character that can be encoded with a +.
Example:
%20 | space |
%3C | < |
%3E | > |
#23 | # |
etc. |
More generally any character can be encoded in HTML4 with its ASCII code (more precisely Windows-1252 encoding) and since HTML5 in UTF-8.
dCode retains ownership of the online 'URL Decoder' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for URL Decoder download for offline use on PC, tablet, iPhone or Android !
Please, check our community Discord for help requests!