Tool to program and translate JSFuck Language, an obfuscated way of writing JavaScript with 6 characters [] ()! +
JSFuck Language [][(![]+[]) - dCode
Tag(s) : Programming Language
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!
JSFuck is an esoteric programming language, variant of JavaScript, which only uses the characters []()+! to write valid JavaScript code.
Example: JSFuck code +[] executes as value 0 (in javascript)
The JSFuck has found ways to write numbers and letters, and by combining its solutions, almost any JavaScript code can be converted. Here are some correspondances:
JSFuck | equivalent JS |
---|---|
![] | false |
!![] | true |
+[] | 0 |
+!+[] | 1 |
!+[]+!+[] | 2 |
[+!+[]]+[+[]] | 10 |
(![]+([]+[]))[+!+[]] | a |
The JSFuck is interpreted by the browser, but it is possible to ask the browser not to execute the code, only the JavaScript equivalent and thus find more or less the original program.
dCode uses the JSFuck Javascript library by @aemkei.
JSFuck has 2 uses:
— Make the code unreadable for a human by practicing obfuscation (reminder: the code remains correct for a browser/compiler). By extension, it is possible to encode/encrypt text in JSFuck, even if it is not valid in JavaScript.
— Bypass any security restrictions put in place to validate user input in order to prevent the injection/execution of JavaScript code. So a program that has learned to spot Javascript code might not recognize JSFuck as such.
The JSFuck contains only 6 characters: the square brackets [], the parentheses (), the plus + and the exclamation point !.
dCode retains ownership of the "JSFuck Language [][(![]+[])" source code. Any algorithm for the "JSFuck Language [][(![]+[])" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "JSFuck Language [][(![]+[])" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "JSFuck Language [][(![]+[])" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "JSFuck Language [][(![]+[])" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: JSFuck Language [][(![]+[]) on dCode.fr [online website], retrieved on 2025-04-16,