This extension allows you to encode strings in the JavaScript format (i.e. Unicode/Hex), similar to Burp's Convert-To but specifically for within JSON/JavaScript.

This can be useful for bypassing WAF's/web application validation, particularly if the value is later returned as is and read by JavaScript in the browser.

Three types of encoding are supported:

Usage

You can use this extension in places where you can modify text. For example, Repeater, Intruder.

To use this extension, you can "Right-click -> Extensions -> JavaScript EncodeAs -> (Select encoding choice)".

Text should be encoded in JavaScript-friendly format.

Encoding choices

Unicode:

Unicode aware:

Hex: