Stack Trace Prettifier
Turn raw traces from five runtimes into a clean, deduplicated table or Markdown.
Raw trace
Cleaned frames
No trace pasted yet
Load an example to see the parser in action.
Examples
Node TypeError
at getUser (/app/src/users.js:42:18) + node:internal frame2 rows, internal frame hidden by defaultApplication frames appear first and the runtime frame is filtered.
5000 recursive frames
5,001 identical V8 frames1 row with ×5000The table stays readable while the original depth is preserved.
Java Caused by
Exception + Caused by chainFrames tagged with their cause sectionNested exceptions remain distinguishable after cleanup.
About this tool
Stack Trace Prettifier turns a raw error trace into a readable table you can paste into a ticket. It recognizes Node/V8, SpiderMonkey and JavaScriptCore, Python tracebacks, Java stack traces with Caused by chains, and Go goroutine dumps.
Each frame is parsed into a function name, file, line and column where available, then classified as application code, a dependency or a runtime internal. Paths under node_modules, site-packages, vendor and GOROOT are treated as dependencies; node: modules, java.base, Python stdlib paths and V8 runtime frames are treated as internal.
Consecutive identical frames — the signature of recursive calls — collapse into one row with a multiplier badge. Short repeating cycles are detected as well. Filters hide internal or dependency frames, or show application frames only, while the header keeps the original count.
Three exports share the same frame list: a numbered Markdown list, a Markdown table with kind badges and a cleaned plain-text trace. Everything runs in the browser tab; the pasted trace is never uploaded and minified frames are not resolved.
What this tool does not do
- Five grammar families are supported; traces from other runtimes fall back to an explanatory error state.
- Source maps, symbolication and DWARF resolution are out of scope; locations are shown exactly as pasted.
- Cycle detection covers short repeating tails; complex mutual recursion may only collapse consecutive duplicates.
- Custom ignore patterns are simplified globs, not full regular expressions.
- No trace is persisted or uploaded; reloading the page clears the input.
How to use this tool
Paste a trace
Drop a Node, Python, Java, Go or browser trace into the box, or load one of the bundled examples.
Confirm the grammar
The detected runtime appears above the table. Unknown formats produce an explanation rather than a blank result.
Filter frames
Hide internals, hide dependencies or switch to app-only mode. Add comma-separated ignore patterns such as /generated/*.ts.
Find the root cause
The root-cause card highlights the first application frame (last for Python tracebacks), which is usually the line to investigate.
Copy an export
Switch between Frames, Markdown and Plain text, then copy or download stack-trace.md for your issue report.
Use cases
Bug reports
Paste a Markdown table into GitHub or Jira so reviewers see the relevant frames first.
Support triage
Strip customer-specific dependency paths and isolate the application frame that failed.
Standup summaries
Turn a long production trace into a few readable lines without losing the error header.
Recursion diagnosis
Spot repeated frames instantly when a stack-overflow error hides the real call pattern.
Recognized frame shapes
| Runtime | Example frame |
|---|---|
| Node / V8 | at fn (/app/a.js:12:8) |
| SpiderMonkey / JSC | fn@https://site/app.js:3:9 |
| Python | File "/app/main.py", line 8, in run |
| Java | at com.app.Main.run(Main.java:24) |
| Go | pkg.fn(0x4) + tab-indented /app/main.go:19 |
Java Caused by sections are preserved on their frames; recursion counts are shown in the × column and in Markdown exports.
Common mistakes
Mistake:Expecting source maps to be applied.
Fix:This tool formats frames only; minified locations stay minified. Resolve them with a source-map tool first.
Mistake:Hiding every dependency by default.
Fix:Hide dependencies is off initially because third-party frames are often the cause; toggle it when you need a narrower view.
Mistake:Reading the first frame as the root cause.
Fix:For V8 and Java the first application frame is usually relevant; for Python tracebacks the last application frame is highlighted.
Mistake:Pasting several traces at once.
Fix:Paste one trace per pass — the grammar detector expects one error header, and mixed traces can confuse frame counts.
Mistake:Assuming ignore patterns are full regexes.
Fix:They are simple glob-ish patterns: * matches within a path segment, ** matches across segments, ? matches one character.
Frequently asked questions
Which runtimes are detected automatically?
Node and V8 traces, SpiderMonkey and JavaScriptCore traces, Python tracebacks, Java stack traces (including Caused by chains) and Go goroutine dumps. The detector scores the first 40 non-empty lines against each grammar and shows the detected runtime above the table.
How is recursion collapsed?
Consecutive frames with the same function, file and line become one row with a ×count badge, so 5,000 recursive calls take one line. Short A,B,A,B cycles at the end of a trace are also detected and merged. Turn off cycle detection only if you need every repeated row preserved.
What counts as an internal frame?
Paths with node: internals, internal/, V8 runtime frames, java.base, Python stdlib locations, GOROOT and similar runtime markers. Dependencies are a separate kind: node_modules, site-packages, vendor, .m2, target/classes and gopkg.in. Internal frames are hidden by default; dependency frames are shown by default.
Are async and await frames handled?
Yes. V8 async frames keep their async prefix in the function name, and standalone async lines are associated with the following frame. The cleaned table shows them alongside synchronous frames.
Does it resolve minified code?
No. The tool formats and classifies the frames it receives; it does not apply source maps or fetch source files. Resolve minified stacks with a source-map tool first, then paste the readable trace here.
Which export should I use for an issue report?
Markdown is usually best: the list format resembles a cleaned stack while the table adds kind badges and recursion counts. Plain text keeps the familiar 'at fn (file:line:col)' shape for teams that prefer code blocks.
Can I ignore project-specific paths?
Yes. Enter comma-separated patterns in the Ignore patterns field. Patterns support * within a path segment, ** across segments and ? for a single character; matching frames are classified as internal and hidden when Hide internal is on.
Is my trace uploaded anywhere?
No. Parsing, filtering and export generation happen entirely in your browser tab. Nothing is sent to a server and the text is not saved after you leave the page.
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.