Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we decode URL with Notepad++?

Tags:

notepad++

People also ask

How do I decode in notepad?

To encode or decode Base64 data you need to first highlight the entire range of data you want to be encoded or decoded. Next, click on “Plugins” in the top bar, then “MIME Tools”. In the second level of the menu you can see all of the Base64 encode and decode options.

How do I encode a URL in text?

Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits. URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign or with %20.

Does browsers automatically decode URL?

kinda de-facto standard yes. but only in modern browsers. its done for user convienience, so you can put utf8 charactesr in an url and its still pretty to the human eye. however please be aware that the text is actually still encoded and will be transmittet/requested encoded, it is only displayed decoded.


In Notepad++ under Plugins => MIME Tools you will find URL Encode and URL Decode.


Thanks to PiLHA.

  1. Download the jN plugin.
  2. Place files from Zip to Plugin folder of Notepad++ in C:\Programs Files\Notepad++\plugins.
  3. Save Code below as URLENDECODE.js and save it to C:\Program Files\Notepad++\plugins\jN\includes.
  4. Restart Notepad++.

Code:

var URLDecoderEncoder = Editor.addMenu('URL-Encoding/Decoding');
URLDecoderEncoder.addItem({
    text: 'Encode',
    cmd: function() {
        var unencoded = Editor.currentView.text;
        var encoded = encodeURIComponent(unencoded);
        Editor.currentView.text = encoded;
    }
});
URLDecoderEncoder.addItem({
    text: 'Decode',
    cmd: function() {
        var encoded = Editor.currentView.text;
        var unencoded = decodeURIComponent(encoded);
        Editor.currentView.text = unencoded;
    }
});
URLDecoderEncoder.addItem({
    text: 'Decode multi-pass (7x)',
    cmd: function() {
        var encoded = Editor.currentView.text;
        var unencoded_pass1 = decodeURIComponent(encoded);
        var unencoded_pass2 = decodeURIComponent(unencoded_pass1);
        var unencoded_pass3 = decodeURIComponent(unencoded_pass2);
        var unencoded_pass4 = decodeURIComponent(unencoded_pass3);
        var unencoded_pass5 = decodeURIComponent(unencoded_pass4);
        var unencoded_pass6 = decodeURIComponent(unencoded_pass5);
        var unencoded = decodeURIComponent(unencoded_pass6);
        Editor.currentView.text = unencoded;
    }
});