JavaScript Tools
Format, minify, and transform JavaScript and TypeScript code with syntax-aware tooling.
29 tools available, all running locally in your browser.
- JS AST ParseParse JS into a simplified AST token list.TOOL
- JS BeautifyBeautify JavaScript with 2-space indentation.TOOL
- JS BundleBundle multiple JS modules.TOOL
- JS Constant FoldingFold constant arithmetic expressions.TOOL
- JS Dead Code EliminateRemove statements that follow a top-level return. Detection is text-based: a string literal containing 'return' is treated as a real return, which can truncate the string and swallow the code after it.TOOL
- JS DeobfuscateDecode \xNN hex escapes in JavaScript strings back to their characters. A doubled backslash before x (a literal backslash in the source, like "\\x41") is misread as an escape and decoded incorrectly.TOOL
- JS DiffCompare two JS snippets line by line.TOOL
- JS Extract ClassesExtract all class names from JS.TOOL
- JS Extract ExportsList exported names from JS: export const/let/var/function/class declarations are recognized, and a 'default' entry is added when export default is present. The export { a, b } list form and export * re-exports are not recognized.TOOL
- JS Extract FunctionsList function names from JS source: function declarations/expressions plus const/let/var arrow assignments. Async arrow functions (const f = async () => {}) and class methods are not detected.TOOL
- JS Extract ImportsExtract all import sources from JS.TOOL
- JS Extract VariablesList the first declared name of each var/let/const statement. Multi-declarator statements (var a = 1, b = 2) report only a, and destructuring patterns (const {a} = obj) are not supported.TOOL
- JS Identifier ListList identifiers and quoted words found in JavaScript source (minus reserved keywords). Regex-based lexeme collection — not a true AST walk: string-literal words are collected too, and scope/structure are ignored.TOOL
- JS LintLint JavaScript for common issues.TOOL
- JS MangleMangle identifier names to short forms.TOOL
- JS MergeMerge two JS snippets.TOOL
- JS MinifyMinify JavaScript by removing comments and whitespace.TOOL
- JS ObfuscateSimple JS obfuscation: encode strings as hex.TOOL
- JS Remove CommentsStrip // and /* */ comments from JavaScript. The scanner is not regex-aware: a regex literal containing quotes (like /['"]+/) can confuse it and leave a following comment in place.TOOL
- JS Remove ConsoleRemove all console.* calls from JS.TOOL
- JS Remove DebuggerRemove debugger statements from JS. Matching is plain text search, so the word 'debugger' inside string literals is removed too — string contents containing it will be altered.TOOL
- JS SourceMapGenerate a simplified sourcemap JSON.TOOL
- JS SourceMap MergeMerge two sourcemaps.TOOL
- JS to JSONConvert a JS object literal to JSON.TOOL
- JS Tree ShakeRemove unused variable declarations.TOOL
- JS Tree Shake DeepDeep tree shaking: remove unused functions.TOOL
- JS ValidateA bracket-balance sanity check for JavaScript: parentheses, brackets and braces must pair up. It is heuristic — regex literals containing brackets (e.g. /\(/) can trigger a false UNCLOSED report; this is not a full parser.TOOL
- JS Variable RenameRename variables to shorter names.TOOL
- JSON to JSConvert JSON to a JS object literal.TOOL