120 | A free and efficient obfuscator for JavaScript (including support of ES2022). Make your code harder to copy and
121 | prevent people from stealing your work. This tool is a Web UI to the excellent (and open source)
122 | javascript-obfuscator@4.0.0
123 | created by Timofey Kachalov.
124 |
132 |
133 | There are numerous reasons why it's a good idea to protect your code, such as:
166 |No, while it's impossible to recover the exact original source code, someone with the time, knowledge and 180 | patience can reverse-engineer it.
181 |Since the JavaScript runs on the browser, the browser's JavaScript engine must be able to read and 182 | interpret it, so there's no way to prevent that. And any tool that promises that is not being 183 | honest.
184 | 185 |Because the obfuscator introduces new pieces of code that are meant to protect and defend against
187 | debugging and reverse-engineering. Also strings are converted to \xAB hexadecimal code to
188 | make things a little bit harder to understand. You don't have to worry too much about code size because
189 | there is a lot of repetition, so the obfuscated code will be compressed extremely well by your
190 | webserver (if you have GZIP compression enabled on your server, which most do nowadays).
No, it's not recommended and in some cases it'll break the code (such as if you enable self-defending). 194 | You can run your code through a minifier before to make sure that it removes dead code and do other 195 | optimizations, though.
196 | 197 |No. The source is processed by our application server, then to the obfuscator and back to the browser, so 199 | it only stays on our server memory for a brief period of time (usually milliseconds).
200 | 201 |No, it's impossible to revert the obfuscated code back to your original code, so keep the original 203 | safe.
204 | 205 |Yes.
207 | 208 |Sure. This tool uses a free and open source (BSD-2-Clause licensed) obfuscator written in TypeScript. You 210 | can go to its 211 | GitHub page and read more there.
212 |There are also a number of plugins, such as: webpack-obfuscator, gulp-javascript-obfuscator 215 | and 216 | grunt-contrib-obfuscator. 217 |
Also, this web app is open-source as well. Check out our GitHub. 219 |
220 | 221 |If you're interested in just uglyfing and compressing your code, I suggest JSCompress.com.
224 | 225 |