Toolvito

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

Paste or open a .map file. The page lists its sources and names, counts the mappings and checks the map: version 3, the Base64 VLQ of the mappings, indexes into sources and names, and the order of columns.

Your values

Up to 30 MB; larger maps: use the box below.

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.

Large maps, maps against their bundle, every mapping as CSV, stack-trace files

Large maps, a map against its bundle, every mapping, stack-trace files

Choose one or more .map files (any size), with their bundles (.js) to check that each map fits its file, and stack traces as .txt files to turn back; or a ZIP of a build folder. You get a JSON report of each map, every mapping as CSV, the stack traces with original positions and, on request, the original files of sourcesContent as a ZIP.

Or drop files here. MAP, JS, MJS, CJS, BUNDLE, JSBUNDLE, TXT, LOG or ZIP, up to 200 files, 300 MB each at most.

    More options

    The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. 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.

    How to find the original line of an error

    1. Open the .map file of the minified script (such as main.3f2a.js.map).
    2. 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.
    3. The original file, line, column and name are shown, with the line of your code when the map keeps sourcesContent.
    4. 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.

    Related tools