Calculates on this device. File exports run online.
Source Map Viewer
Paste or open a .map file. The page shows its sources and names and checks the map, finds the original file, line and column of a position in the minified code, turns a stack trace back into your own files, lists every mapping and gives you the original files kept in the map.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to find the original line of an error
- Open the .map file of the minified script (such as main.3f2a.js.map).
- Choose Find the original position, type the line and column from the error message (columns counted from 1, as browsers show them) and press Look it up.
- The original file, line, column and name are shown, with the line of your code when the map keeps sourcesContent.
- For a whole stack trace, choose Turn a stack trace back and paste it.
What is checked in a map
- version 3, sources, names and mappings are present and of the right kind.
- mappings: every Base64 VLQ character, segments of 1, 4 or 5 numbers, source and name indexes inside their lists, no negative positions, columns in order on each line.
- sourcesContent has one entry per source; ignoreList points at sources; index maps (with sections) are read section by section.
Columns from 0 or 1
Inside a map, lines and columns are counted from 0. Browsers and stack traces count from 1. The page counts from 1 unless you choose otherwise under More options; lines are always shown from 1.
Limits you should know
- A position between two mappings takes the mapping before it, as browsers do.
- Frame names stay as in the minified code; the name at the position is listed beside it. For React Native (Metro) maps the Metro Source Map Viewer names the functions.
- Maps of more than 30 MB, and checking a map against its bundle, are done in the box below.
Privacy
Maps and stack traces are read in your browser. Only what you choose in the box below is sent to the Toolvito server, to be read there. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.