Decode a source map's mappings to turn a minified line and column into the original file, and find paths that expose your build machine.
Waiting for a source map
Decodes the mappings so a minified position can be resolved, and reads what the file discloses.
Nothing to inspect yet
Paste a .map file, or load the example to see a path that gives away a username.
Source Map Inspector runs entirely on your device — the map is decoded in your browser. Nothing is uploaded, and no URL named inside it is ever fetched, which matters because a source map often embeds your original code.
You’re on the Free plan. Compare plans
A source map is a JSON file whose only interesting field is one enormous string. `mappings` is base64 VLQ, delta-encoded in four dimensions at once, and it is completely opaque until something decodes it — so the two questions people actually have cannot be answered by looking at the file.
The first is "which original line is this?". Give it a line and column from a minified stack trace and it resolves to the original file, line, column and function name, with the surrounding source shown when the map embeds it. Matches are marked exact or approximate, because a minified line carries a segment every few characters and a position between two of them belongs to the earlier one.
The second question is the underrated one: is this map safe to publish? `sources` is a list of paths, and build tools cheerfully write absolute ones. A path like `/Users/someone/work/acme-internal/src/billing.ts` tells anyone who opens devtools your directory layout, your internal project names and often your username. This flags every path that does that, and says which account name it exposes.
It also reports what would stop the map working: a wrong version, an empty mappings string, `sourcesContent` that does not line up with `sources`, mappings pointing past the end of the sources list, and groups that cannot be decoded at all.
Nothing is fetched. A map that references an external file is reported rather than followed, which matters because a source map frequently embeds your original source outright.
Because no segment starts exactly at that position, so the mapping that covers it is the nearest preceding one. That is how a browser resolves it too. Minified code has a segment every few characters, so an exact hit is the exception rather than the rule.
It depends who can reach the map. A path beginning /Users/ or C:\Users\ carries an account name, and the rest of it carries your directory structure. If the map is served publicly, so is all of that. Most bundlers can rewrite the paths to project-relative ones.
It embeds the original source inside the map, which is what lets devtools show readable code without the original files. It also means publishing the map publishes the source. That is a deliberate choice for some projects and an accident for others, so the tool reports it rather than judging it.
A map with a valid structure and an empty mappings string is what a build produces when source map generation is switched on but a transform in the chain does not propagate positions. It is structurally valid and completely useless, which is why it is reported as an error.
It detects them and reads the outer structure, but it does not decode the sections — that means resolving nested maps at offsets. Extract one section's map and paste that to look inside it.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab