Source map locator
Look up the original file and line for a generated position, or rewrite a stack trace.
Runs in your browser. Your input is not uploaded.
Loading the tool…
What it does, how to use it, and questions
What it does
A source map links positions in minified JavaScript back to the original files. Browsers and bundlers use version 3 maps with VLQ-encoded mappings.
Paste the .map JSON and a generated line:column (1-based, as in stack traces) to read the original path and position.
How to use it
- Paste the source map JSON.
- Enter the generated line and column, or paste a stack to rewrite.
- Read the original location.
Things to watch for
- Maps that use
sourcesContentonly are still fine; remote source files are never fetched. - If the column does not match a mapping start, the nearest mapping on that line is used when possible.
Questions
- Are line numbers 0-based?
- Input is 1-based, matching Chrome stack traces. Internally the map is 0-based.
- Can I load a map from a URL?
- No. Paste or open the file. ToolDeck does not fetch URLs for your content.
- What does rewrite stack do?
- It replaces
file:line:colframes it can resolve, and leaves the rest unchanged. - Is the map uploaded?
- No. Lookup runs in this page.