.MWB

MWB File

MySQL Workbench Model
Ask a question
QUICK ANSWER

An MWB file is a MySQL Workbench database model - it stores your EER diagram (tables, columns, relationships, keys) but no actual data. Open it in MySQL Workbench (free, from Oracle), then use Database → Forward Engineer to produce the SQL script that builds the real database.

Developer: Oracle Corporation (originally MySQL AB / Sun) Category: Database Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .DB · .DBF · .ACCDB · .SQL

On this page

19k+ extensions indexed
Last reviewed Sep 6, 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 MWB file format?

A .mwb file is the native model format of MySQL Workbench - Oracle's visual design tool for MySQL databases. .MWB files allow you to save your database design work while you are still developing it, storing the essential parts of the schema such as tables, columns, indexes, foreign keys, and entity-relationship diagrams.

Despite the .mwb extension, the file is internally a ZIP archive - its first four bytes carry the PK signature (50 4B 03 04). The core payload is an XML document named document.mwb.xml, which holds the full EER model, connection metadata, and embedded SQL scripts. Renaming a .mwb file to .zip lets you inspect its contents with any archive manager.

Files with the .mwb extension are created and edited in MySQL Workbench, available on Windows, Linux, and macOS. To deploy the design to a live server, you export the schema as a .sql script through the built-in Forward Engineering wizard.

Security & safety

RISK: LOW

An .mwb is a design document with no executable payload, low risk. It can, however, reveal your full database schema (table/column names, relationships) to anyone who opens it, so treat shared models as sensitive. Download MySQL Workbench only from mysql.com.

Format details

in a nutshell
FULL NAMEMySQL Workbench Model
DEVELOPEROracle Corporation (originally MySQL AB / Sun)since 2005+ (MySQL Workbench)
MIME TYPEapplication/octet-stream
TYPEZIP-based project container (binary)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
A modern .mwb is a ZIP archive (starts with PK, 50 4B 03 04) containing an XML document.mwb.xml plus thumbnails and metadata. Rename to .zip to inspect. Distinguish from a plain ZIP/APK/DOCX by the internal document.mwb.xml.

Programs that open MWB files

Windows1 app
MySQL Workbench Free File → Open Model, select the .mwb; edit the EER diagram, then Database → Forward Engineer to get SQL.
macOS1 app
MySQL Workbench Free Open the .mwb model; use File → Export to save the diagram as PDF/PNG or Forward Engineer to SQL.
Linux1 app
MySQL Workbench Free Install from the distribution repo or Oracle, open the .mwb model file.

Technical details

deep spec
DeveloperOracle Corporation (originally MySQL AB / Sun Microsystems)
Container formatZIP archive - magic bytes 50 4B 03 04 (PK signature) at offset 0
Core internal filedocument.mwb.xml - XML document holding the complete EER model, connection metadata, and SQL scripts
MIME typeapplication/octet-stream
Platform supportWindows, Linux, macOS (via MySQL Workbench)
Diagram typeEnhanced Entity-Relationship (EER) visual diagrams
Schema elements storedTables, columns, indexes, foreign keys, views, stored procedures, triggers, and relationships
CompressionZIP deflate - entries inside the archive are individually compressed
Forward and Reverse EngineeringSchema can be forward-engineered to a live MySQL server or reverse-engineered from an existing database
Export formatSQL DDL script (.sql) via the built-in Forward Engineering wizard
Inspection methodRename .mwb to .zip to open with any archive manager and access the internal XML and assets
Embedded scriptingMySQL Workbench exposes a Python API that can programmatically generate and manipulate model files
Diagram thumbnailA PNG thumbnail of the EER canvas is bundled inside the ZIP archive alongside the XML
Version trackingThe document.mwb.xml root element carries a document-version attribute for compatibility tracking
Released2005+ (MySQL Workbench)
Specificationdev.mysql.com

MWB conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MWB 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 MWB files.

Frequently asked questions

What opens an .mwb file?
MySQL Workbench, Oracle's free official tool. There is no full third-party viewer; the format is proprietary.
Does an .mwb file contain my data?
No. It stores only the database DESIGN (tables, columns, relationships) - the schema, not the rows. The actual data lives on the MySQL server.
How do I turn an .mwb into a real database?
Open it in MySQL Workbench and run Database → Forward Engineer, which generates and can execute the CREATE TABLE SQL against a server.
Can I open an .mwb without MySQL Workbench?
Not properly. You can rename it to .zip and read the internal document.mwb.xml, but only Workbench renders the diagram and exports SQL.
How do I export the diagram as an image or PDF?
In MySQL Workbench use File → Export → Export as PNG / PDF / SVG.

References

1MySQL Workbench - product pagewww.mysql.com
2MySQL Workbench Reference Manualdev.mysql.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.M4AMPEG-4 Audio File
6.DATProgram Data File (generic)
7.MDMarkdown Document
8.JSONJavaScript Object Notation file
9.NOMEDIAAndroid No-Media Marker File
10.JPGJPEG Image

Related extensions

.DBSQLite Database File
.DBFDatabase File (dBASE / xBase table)
.ACCDBMicrosoft Access Database (2007+)
.SQLSQL Script (Structured Query Language source / database dump)
.MDBMicrosoft Access Database (97-2003, Jet engine)
.FDBFirebird Database

Free file tools

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

Open the toolbox

Browse file extensions A-Z