JS File Viewer

View and edit JavaScript files with syntax highlighting, split comparison, dependency graphs, and 4 color themes. Need to minify? Try our JS/CSS Minifier. View related files with the CSS Viewer or JSON Viewer.

Drop your JavaScript file here

or click to browse files

.js .mjs .cjs .jsx .ts
All processing happens in your browser

Features

4 Color Themes

Choose between VS Code, GitHub Dark, Monokai, and Dracula syntax themes from the toolbar.

Split View

Open two JS files side by side to compare code, structure, and imports at a glance.

Edit Mode

Edit code directly with auto-indent, bracket auto-close, tab support, and Ctrl+S to apply.

Dependency Graph

Visualize all import and require relationships as an interactive SVG graph in Structure view.

Regex Search

Full view includes Ctrl+F search with regex mode toggle, match navigation, and go-to-line.

100% Private

All processing happens in your browser. Your source code never leaves your device.

Supported Formats

Handles modern JavaScript and related formats. For CSS try our CSS Viewer, or the JSON Viewer for data files.

ES6+
CommonJS
ES Modules
JSX / React
TypeScript
Classes
Arrow Functions
Async / Await

Frequently Asked Questions

After loading your first file, click the "+" button in the tab bar to open a second file. Once two files are open, click the "Split" button in the tab bar to view them side by side. Each panel scrolls independently. This is useful for comparing two versions of a file or checking imports between modules.

Switch to Structure view to see a visual SVG graph of all import and require statements in your file. Relative imports (./ or ../) are shown in blue, npm packages in purple, and Node.js built-ins in gray. Click any node to copy the import path. This helps you understand a file's dependencies at a glance.

In Structure view, hover over any function or arrow function name. A copy icon appears on the right side of the item. Clicking it extracts the complete function body from the source code and copies it to your clipboard - useful for quickly grabbing a function to use elsewhere.

Click "Export Range" in the action bar to open a dialog where you enter a start and end line number. You can then copy those lines to your clipboard or download them as a new .js file. The preview shows how many lines are selected. This is handy for extracting a specific section of a large file.

Yes - completely. All file processing, editing, and analysis happens locally in your browser using JavaScript APIs. Your files are never uploaded to any server, making this safe for proprietary, confidential, or sensitive source code.