Differences between escape vs encodeURIComponent

Firefox logo 8
Safari logo 8
Chrome logo 8

This vector shows the differences between escape and encodeURIComponent

Created by: hackvertor

Created on: Tuesday, October 15, 2024 at 9:26:26 AM

Updated on: Thursday, November 21, 2024 at 5:00:12 AM

Vector type: JS

Vector charset: UTF-8

Template used:
let chr = String.fromCodePoint($[i]);
escape(chr) !== encodeURIComponent(chr) && log($[i])
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...

Sample payloads

let chr = String.fromCodePoint(33);
escape(chr) !== encodeURIComponent(chr) && alert(33)
let chr = String.fromCodePoint(43);
escape(chr) !== encodeURIComponent(chr) && alert(43)
let chr = String.fromCodePoint(47);
escape(chr) !== encodeURIComponent(chr) && alert(47)
let chr = String.fromCodePoint(64);
escape(chr) !== encodeURIComponent(chr) && alert(64)
let chr = String.fromCodePoint(126);
escape(chr) !== encodeURIComponent(chr) && alert(126)

Fuzz results

Firefox logo
Firefox 131.0 desktop macOS 10.15

Updated

Tue Oct 15 2024
Found 8 results
Loading...
Safari logo
Safari 18.0 desktop macOS 10.15.7

Updated

Tue Oct 15 2024
Found 8 results
Loading...
Chrome logo
Chrome 130.0.0.0 desktop macOS 10.15.7

Updated

Thu Oct 31 2024
Found 8 results
Loading...
Safari logo
Safari 17.4 desktop macOS 10.15.7

Updated

Fri Nov 01 2024
Found 8 results
Loading...