JavaScript Variable Name Deobfuscator
Analyze obfuscated variable, function, and class names in JavaScript code and get meaningful name suggestions based on usage context. Paste your code, review suggestions with confidence ratings, edit or accept them, build a rename mapping, and preview the deobfuscated code — all free, private, and no signup required.
Paste JavaScript code with obfuscated variable names (a, b, _0x, etc.) and get meaningful name suggestions based on usage context. Edit suggestions, build a rename mapping, and preview the deobfuscated code.
Detected Obfuscated Identifiers (15)
e×4High confidencelengthi×4High confidencelengthv×4High confidencelengthb×3High confidencelengthd×3Medium confidencefirstf×3High confidencelengthdata×3Medium confidencelengthr×3High confidenceidx×2Medium confidencefirsty×2Medium confidencefirstz×2Medium confidencedataa×1Medium confidenceaccumulatorc×1Medium confidenceconfig_0x42×1Low confidencehexString__0xid×1High confidenceidManual Rename
Add custom mappings for variables the detector may have missed.
Privacy Guarantee
All analysis runs entirely in your browser. Your code never leaves your device — no uploads, no API calls, no tracking.
Features
Auto-Detection of Obfuscated Names
Scans your code for short names (a, b, i, j), hex-prefixed identifiers (_0x...), underscores-only variables, and other patterns common in minified and obfuscated JavaScript.
Context-Aware Name Suggestions
Each detected variable is analyzed in its usage context — nearby keywords like count, user, id, error, and result determine the suggested meaningful name with a confidence rating.
Interactive Rename Workflow
Accept, edit, or override suggestions for each identifier. Build a complete rename mapping table showing original → deobfuscated names — no manual searching required.
Deobfuscated Code Preview
After mapping variables, preview the code with all original names replaced by your chosen deobfuscated names. Copy the transformed code or download the mapping as JSON.
Use Cases
Reverse Engineering
When analyzing obfuscated third-party scripts, quickly identify variable usage patterns and rename them to understand what the code does without tracing every reference.
Debugging Minified Code
Browser error stack traces often point to minified production code. Deobfuscate variable names to make stack traces and debugging sessions more readable and actionable.
Code Migration & Auditing
Legacy codebases or acquired assets may have obfuscated variable names. Deobfuscate before refactoring to understand the original intent and avoid introducing bugs.
Learning & Education
Students learning JavaScript can paste minified or obfuscated code to see how variables map to their purposes, building understanding of scope, closures, and naming conventions.
Malware & Security Analysis
Security researchers analyzing potentially malicious JavaScript can deobfuscate variable names to understand data flows, API interactions, and payload construction more rapidly.
Pre-Deployment Review
Before shipping obfuscated code, run it through the deobfuscator to verify no sensitive variable names or internal identifiers are leaking through the obfuscation.
About JavaScript Variable Name Deobfuscation
What Is Variable Name Deobfuscation?
Variable name deobfuscation is the process of replacing short, meaningless, or encoded identifier names in JavaScript code with meaningful, descriptive names that convey their purpose. Obfuscated names like a, _0x42, or ____ are replaced with suggestions like userCount, apiToken, or resultData based on how they are used.
How the Deobfuscator Works
The tool parses your JavaScript code to extract all identifier-like tokens. It filters out JavaScript keywords, standard library names, and property access chains. Each remaining identifier is scored by its likelihood of being obfuscated — short length, hex prefixes, underscore-only patterns, and non-descriptive names rank highest. A context window around each usage is analyzed: nearby keywords (e.g., “count” suggests a counter, “user” suggests a user object) determine the suggested replacement.
Confidence Levels
Each suggestion includes a High, Medium, or Low confidence rating. High confidence means the surrounding context contains a strong, unambiguous keyword match. Medium means a partial or indirect match.Low means the name appears obfuscated but the context provides limited clues — these suggestions are best-guesses based on common conventions.
Privacy & Limitations
This deobfuscator runs entirely in your browser. Your code never leaves your device. It is designed for single-file analysis and works best with standalone JavaScript. For production-grade deobfuscation across multiple files, consider using a dedicated desktop tool like de4js or source map reconstruction. The tool analyzes identifier names and usage patterns only — it does not track runtime state or data flow.