.MAP

MAP File

Source Map (JavaScript / CSS)
Ask a question
QUICK ANSWER

A .map file is most often a JavaScript or CSS source map - a JSON file that lets browser DevTools show the original, readable source behind minified or compiled code. You do not open it by hand; browsers load it automatically when DevTools is open. To read the raw content, any text editor works. (The .map extension is also used by MapInfo GIS data, game level files, and linker maps - check where the file came from.)

Developer: Source map community (Source Map Revision 3 spec); generated by build tools (webpack, Vite, TypeScript, Sass) Category: Developer Files Open standard MIME: application/json
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jul 27, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the MAP file format?

A .map file is a plain-text JSON document that links minified or compiled output - a bundled .js file or a compiled CSS stylesheet - back to the original human-readable source code. Build tools such as webpack, Vite, esbuild, and the TypeScript compiler (tsc) generate .map files automatically alongside their output.

The format was standardized as Source Map Revision 3 around 2011 and is now universally supported across every major JavaScript and CSS build pipeline. A source map sits next to the file it describes - app.js produces app.js.map, styles.css produces styles.css.map - and the minified file references it via a trailing comment: //# sourceMappingURL=app.js.map (or /*# sourceMappingURL=styles.css.map */ for CSS).

The heart of every source map is the mappings field: a compact Base64 VLQ-encoded string that records a segment-by-segment translation from each character position in the output back to the corresponding line and column in the original source. Other fields carry the original file paths (sources), optionally the full source text (sourcesContent), and symbol names (names).

Browser developer tools - Chrome DevTools, Firefox Developer Tools, and Safari Web Inspector - consume .map files transparently. Developers can set breakpoints in TypeScript or SCSS and step through original code even though the browser executes minified output. The .map file is only fetched when DevTools is open; it adds no overhead to normal browsing.

Security & safety

RISK: LOW

A source map is passive JSON and doesn't execute code, so opening one is harmless. The real concern is a privacy/security one for developers: source maps shipped to production can expose your original, un-minified source code - and sometimes comments, file paths, or sourcesContent - to anyone who opens DevTools. Many teams deliberately strip or block .map files on public servers for this reason. If you find unexpected .map files on a live site, that may be an information-disclosure issue worth fixing.

Format details

in a nutshell
FULL NAMESource Map (JavaScript / CSS)
DEVELOPERSource map community (Source Map Revision 3 spec); generated by build tools (webpack, Vite, TypeScript, Sass)since Source Map format v3 (~2011); ubiquitous with modern JS/CSS build tooling
MIME TYPEapplication/json
TYPEJSON text file mapping minified/compiled code back to original source
STANDARDOpen · royalty-free
This extension is also used by…
  • MapInfo GIS data (.map + .tab) - Binary geometry store for a MapInfo table; opened via its companion .tab in QGIS or MapInfo Pro, not on its own.
  • Game level map - Plain-text level geometry from id Tech / Quake / Source / Radiant editors, compiled to a binary level (e.g. .bsp) for play.
  • Linker / debug map - Plain-text listing of symbol addresses and memory layout emitted by a compiler/linker for debugging crashes.

Programs that open MAP files

Windows3 apps
Visual Studio Code Free Open the .map to read the JSON. VS Code also consumes source maps automatically when debugging the matching minified JS/CSS.
Browser DevTools (Chrome / Edge / Firefox) Built-in Load the page, open DevTools - the browser fetches the .map next to the minified file and shows your original source automatically. The primary way source maps are 'used'.
Notepad++ (built-in / any text editor) Open-source Open the .map as text to confirm it's a source map (JSON with '"version":3') and inspect its sources list.
macOS2 apps
Visual Studio Code Free Open the .map JSON to inspect it; use it via the built-in debugger against the minified file.
Browser DevTools (Safari / Chrome / Firefox) Built-in Open DevTools on the page; the browser applies the .map automatically to show original source.
Linux2 apps
Any text editor (VS Code, gedit, nano) Open-source Open the .map JSON to read it.
Browser DevTools (Chrome / Firefox) Built-in Open DevTools; the map is fetched and applied next to the minified file automatically.

Technical details

deep spec
Format typePlain-text JSON (UTF-8); no binary magic bytes
SpecificationSource Map Revision 3 (v3)
MIME typeapplication/json
Mappings encodingBase64 VLQ (Variable-Length Quantity) - encodes line and column offsets for every output segment
Required JSON fieldsversion (must equal 3), sources (array of original file paths), mappings (VLQ-encoded string)
Optional JSON fieldssourcesContent (embedded original text), names (symbol list), sourceRoot (path prefix for all sources)
Naming conventionOutput filename with .map appended: app.js → app.js.map, styles.css → styles.css.map
Source link comment (JS)//# sourceMappingURL=filename.js.map - appended to the last line of the minified file
Source link comment (CSS)/*# sourceMappingURL=filename.css.map */ - appended to the compiled stylesheet
Typical generatorswebpack, Vite, esbuild, TypeScript compiler (tsc), Dart Sass, Rollup, Parcel
Consumed byBrowser DevTools: Chrome DevTools, Firefox Developer Tools, Safari Web Inspector, Edge DevTools
Mapping precisionColumn-level: each VLQ segment maps a single output column to source line and column
File sizeTypically 2-10× the size of the minified output; grows further when sourcesContent is embedded
HTTP delivery alternativeX-SourceMap response header (deprecated; inline comment is the preferred method)
DevTools activationFetched only when browser DevTools is open; not requested during normal page load
ReleasedSource Map format v3 (~2011); ubiquitous with modern JS/CSS build tooling
Open standardYes · royalty-free
Specificationsourcemaps.info

MAP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MAP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MAP files.

Frequently asked questions

What is a .map file?
Most often a JavaScript/CSS source map - a JSON debugging file that maps minified/compiled code back to the original source so browser DevTools can show readable code. (The extension is also reused by MapInfo GIS, game levels, and linker maps.)
What is a .js.map or .css.map file?
A source map: a JSON file that lets the browser's developer tools map minified/compiled code back to the original source for debugging. You don't open it by hand; it's loaded automatically when DevTools is open.
How do I open a source map (.map) file?
Open it in any text/code editor like VS Code to read the JSON. To actually use it, open the page in your browser with DevTools - the browser applies the map automatically to show your original source.
Should source map (.map) files be on my live website?
Usually no - they can expose your original source code to anyone who opens DevTools. Many teams strip or restrict .map files in production builds.
Can I get my original code back from a .map file?
Often yes - a source map referencing your sources (especially with sourcesContent) lets DevTools or an 'unminify' tool reconstruct the original files. This is why leaking maps publicly is a privacy concern.
Why did my build produce .map files?
Build tools like webpack, Vite, TypeScript, and Sass emit source maps so you can debug the minified/compiled output against your original source. They're a development aid; configure your build to omit or restrict them in production if you don't want them exposed.

References

1Source Map Revision 3 specificationsourcemaps.info
2MDN - Use a source map (Firefox DevTools)firefox-source-docs.mozilla.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.JPGJPEG Image
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.ICSiCalendar data file
8.PARTPartial Download File
9.BINCD/DVD Disc Image (BIN/CUE)
10.JSONJavaScript Object Notation file

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.CONFIGConfiguration File
.NUPKGNuGet Package

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z