🔍

首页Home › 开发工具Developer Tools

🔓 JS 代码反混淆 / 解包美化JavaScript Deobfuscator & Unpacker

把压缩或混淆过的 JavaScript 尽量还原成可读代码:自动解包 Dean Edwards 的 eval(function(p,a,c,k,e,d)…) 打包器(可多层),还原 \x / \u 转义字符串,折叠 unescape、atob、String.fromCharCode 和字符串拼接常量,十六进制数字转十进制,把 obj["prop"] 改为 obj.prop,最后格式化缩进;纯静态文本处理,不执行代码。Make minified or obfuscated JavaScript readable: unpack Dean Edwards’ eval(function(p,a,c,k,e,d)…) packer (multiple layers), decode \x / \u escapes, fold unescape, atob, String.fromCharCode and concatenated literals, convert hex numbers, turn obj["prop"] into obj.prop and beautify — all as static text transforms, never executing the code.

所有处理都是静态文本变换,代码不会被执行(打包器解包只计算字符串,不运行其中逻辑),也不会上传。可以处理常见的 Dean Edwards 打包器、转义字符串和简单的常量拼接;对控制流平坦化、字符串数组轮换等强混淆只能做到格式化,变量名无法恢复。请只用于分析你有权查看的代码,例如排查网页里的可疑脚本。Everything is a static text transform — the code is never executed (the packer is unpacked by string substitution) or uploaded. Handles Dean Edwards packer, escaped strings and simple constant folding; heavy obfuscation (control-flow flattening, rotated string arrays) can only be beautified and original names can’t be recovered. Use it on code you’re entitled to inspect, e.g. a suspicious script on a page.

使用说明与常见问题How-to & FAQ

「JS 代码反混淆 / 解包美化」是什么?What is the JavaScript Deobfuscator & Unpacker?

把压缩或混淆过的 JavaScript 尽量还原成可读代码:自动解包 Dean Edwards 的 eval(function(p,a,c,k,e,d)…) 打包器(可多层),还原 \x / \u 转义字符串,折叠 unescape、atob、String.fromCharCode 和字符串拼接常量,十六进制数字转十进制,把 obj["prop"] 改为 obj.prop,最后格式化缩进;纯静态文本处理,不执行代码。Make minified or obfuscated JavaScript readable: unpack Dean Edwards’ eval(function(p,a,c,k,e,d)…) packer (multiple layers), decode \x / \u escapes, fold unescape, atob, String.fromCharCode and concatenated literals, convert hex numbers, turn obj["prop"] into obj.prop and beautify — all as static text transforms, never executing the code.

如何使用「JS 代码反混淆 / 解包美化」?How do I use the JavaScript Deobfuscator & Unpacker?

粘贴代码,按需勾选还原步骤,点“反混淆”。如果结果仍是 eval 打包,再点一次即可继续解包。Paste the code, choose the steps and press Deobfuscate. If the result is still packed, run it again.

能完全还原原始代码吗?Can it restore the original source?

不能。压缩和混淆会丢掉原来的变量名和注释,工具只能把结构和字符串恢复成可读形式。No — minifiers drop original names and comments; the tool restores readable structure and strings.

会执行我粘贴的代码吗?Does it run my code?

不会。所有步骤都是对文本做替换和格式化,打包器的解包也是按其字典替换字符串,不会运行代码中的逻辑,可以安全查看可疑脚本。No. Every step is a text transform; the packer is unpacked by dictionary substitution, so suspicious scripts are safe to inspect.

「JS 代码反混淆 / 解包美化」免费吗?文件会上传吗?Is the JavaScript Deobfuscator & Unpacker free? Are my files uploaded?

「JS 代码反混淆 / 解包美化」完全免费,无需注册。你输入的内容只在本机浏览器里处理(部分设置会保存在本机方便下次使用),不会上传到任何服务器。The JavaScript Deobfuscator & Unpacker is free with no sign-up. What you enter is processed only in this browser (some settings are kept locally for next time) and is never uploaded.

相关工具Related tools

🟨 JS 格式化/压缩JavaScript Beautifier & Minifier🛡️ JS 混淆加密JavaScript Obfuscator🧾 HTML 格式化/压缩HTML Beautifier & Minifier🧾 JSON 格式化校验(美化 / 压缩 / 树形查看)JSON Formatter & Validator🧪 正则表达式测试(在线图解 + 替换)Regex Tester with Visualiser🧩 浏览器扩展 CRX 解析查看CRX Extension Viewer

← 全部工具All tools