Canonical: https://toolipedia.app/source-map-stack-trace-decoder

# Source Map Stack Trace Decoder

Paste a source map and a minified line and column, or a whole stack trace, and read back the original file, line, column and name.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Source Map Stack Trace Decoder

## About Source Map Stack Trace Decoder

A source map stores, for every spot in a minified file, the original file, line, column and sometimes the identifier name. This tool decodes the base64 VLQ mappings string in the browser and looks up a position: pick one line and column, or paste a whole stack trace and every file:line:column in it is replaced by the original position. Example: with the built-in sample map, line 2 column 5 of bundle.min.js points to a.js line 2 column 7, name bar. Only single-bundle maps are supported, not index maps with sections.

## How to use Source Map Stack Trace Decoder
1. Paste the contents of the .map file; it needs the sources and mappings fields.
2. Choose one position or a whole stack trace, and enter the line and column or paste the trace.
3. Read the original file, line, column and name, and copy the decoded trace if you used one.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- source map stack trace decoder
- decode minified stack trace
- source map lookup
- deminify error line column
- map minified line to original source

## Frequently asked questions

### Do columns in stack traces start at 0 or at 1?

Browser stack traces count lines and columns from 1, while the source map format itself counts columns from 0. The page has a setting for single positions and assumes 1 for pasted traces.

### Why does a position show no mapping found?

The position may fall before the first mapped token of its line, on a line without mappings, or in a different bundle than the map you pasted. Check the line, the column numbering and the map file.

### Can it open maps with inline sourcesContent?

Yes. If the map contains sourcesContent, the original source line at the decoded position is shown. A map without it still gives file, line, column and name.

### Is Source Map Stack Trace Decoder free?

Yes. Source Map Stack Trace Decoder on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with Source Map Stack Trace Decoder:
- [Stack Trace Formatter and Cleaner](https://toolipedia.app/stack-trace-formatter-cleaner)
- [Open Source Licence Picker and File Header Generator](https://toolipedia.app/open-source-licence-picker-and-file-header)
- [HTML Image Map Generator](https://toolipedia.app/html-image-map-generator)
- [Log File Filter and Highlighter](https://toolipedia.app/log-file-filter-highlighter)
- [SAML Message Decoder](https://toolipedia.app/saml-message-decoder)
