.MBZ

MBZ File

Moodle Course Backup
Ask a question
QUICK ANSWER

An MBZ file is a Moodle course backup - a single archive containing an entire online course (activities, resources, settings, and optionally user data). You restore it into a Moodle site via Course administration > Restore rather than opening it like a document. To inspect the contents without Moodle, rename it to .tgz (modern backups) or .zip (older backups) and open it with 7-Zip.

Developer: Moodle Pty Ltd (Moodle HQ) Category: Backup Files MIME: application/gzip
OPENS ON Windows macOS Linux
Related: .BUP · .BAK · .SKB · .SET

On this page

19k+ extensions indexed
Last reviewed Aug 26, 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 MBZ file format?

An .mbz file is a course backup archive created by Moodle, the open-source learning management system developed by Moodle Pty Ltd. The extension stands for Moodle Backup Zip, though the modern format is no longer a ZIP file.

Modern .mbz files (Moodle 2.9 and later) are gzipped TAR archives - identifiable by the 1F 8B magic bytes at the start of the file. Older backups created before Moodle 2.9 were plain ZIP archives renamed to .mbz and begin with the PK signature (50 4B). You can tell which type you have by renaming the file to .tgz or .zip and opening it with any archive tool.

Internally, an .mbz archive contains:

  • moodle_backup.xml - the main manifest recording course metadata, Moodle version, and backup format version
  • Per-activity XML files for forums, quizzes, assignments, and other modules
  • Gradebook and user-data XML files
  • A files/ directory tree holding all embedded media and course documents

The file is designed to be restored through Moodle (Course Administration > Restore), not opened as a standalone document. The moodle_backup.xml manifest ties everything together, and a Moodle instance of the same or newer version than the one that created the backup is required for a successful restore.

File sizes typically range from 1 MB for a minimal text-based course to several GB for media-heavy ones. To inspect the contents without restoring, rename .mbz to .tgz and extract with tar -xzf course.tgz, or open with 7-Zip on Windows.

Security & safety

RISK: MEDIUM

An MBZ is inert archive data, safe to extract. The real concern is privacy: a course backup made 'with user data' contains students' personal information, submissions and grades - treat such MBZ files as confidential and handle per your institution's data-protection rules (e.g. GDPR/FERPA). Restoring an MBZ from an untrusted source can also import unexpected content/settings into your site, so only restore backups you trust, ideally into a test course first.

Format details

in a nutshell
FULL NAMEMoodle Course Backupaka Moodle Backup, Moodle backup zip
DEVELOPERMoodle Pty Ltd (Moodle HQ)since Moodle 2.0 (2010) introduced the modern backup format; tar.gz became the default backup container in Moodle 2.9 (2015)
CATEGORYBackup Files
MIME TYPEapplication/gzip
TYPEGzipped TAR archive of a Moodle course (XML + course files); older backups are ZIP renamed to .mbz
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
1F8B
ASCII
··
Modern MBZ (Moodle 2.9+) is a gzipped TAR, so it starts with the GZIP magic 1F 8B. Older MBZ files were plain ZIP archives renamed to .mbz and start with 'PK' (50 4B 03 04). Identify by header: 1F 8B = tar.gz, 50 4B = zip.

Programs that open MBZ files

Windows2 apps
7-Zip Open-source To inspect contents, rename .mbz to .tgz (or .zip for older backups) and Open archive - reveals the XML files and files/ folder.
Moodle (Restore) Open-source On your Moodle site: Course administration > Restore, upload the .mbz, and follow the restore wizard. This is the correct way to 'open' it.
macOS2 apps
Moodle (Restore) Open-source Restore the .mbz into your Moodle course (Course administration > Restore).
The Unarchiver / Archive Utility Free Rename to .tgz and extract to inspect the XML/media inside; you still need Moodle to actually use the course.
Linux1 app
tar (command line) Open-source tar -xzf backup.mbz to extract a modern (tar.gz) MBZ; use unzip for older ZIP-based backups.

Technical details

deep spec
Container formatGzipped TAR (`.tgz`) for Moodle 2.9 and later; plain ZIP archive for older backups
Magic bytes`1F 8B` (gzip) for modern `.tgz`-based backups; `50 4B` (PK) for legacy ZIP-based backups - check the header to distinguish
MIME type`application/gzip` for modern backups; `application/zip` for legacy ZIP-based backups
Compressiongzip (DEFLATE) applied over a TAR stream for current files; ZIP DEFLATE used in legacy backups
Manifest file`moodle_backup.xml` at the archive root - records Moodle version, backup format version, course structure and activity list
Internal structureArchive root holds `moodle_backup.xml`, per-activity XML subdirectories (one per forum, quiz, assignment, etc.), gradebook and user XML, and a `files/` media tree
Naming origin"MBZ" stands for Moodle Backup Zip - the name was kept even after the container switched from ZIP to gzipped TAR in Moodle 2.9
EncryptionNone - the archive carries no built-in encryption; external file-level protection must be applied separately
Integrity checkgzip CRC32 on the compressed stream; no whole-archive checksum is embedded in the `.mbz` file
Typical file size1 MB to several GB, depending on course content volume, embedded media, and user data included in the backup
Restore version requirementA Moodle instance of the same version or newer than the originating site is required; downgrade restores are not supported
Inspection without MoodleRename `.mbz` to `.tgz` and run `tar -xzf course.tgz`, or rename to `.zip` (legacy) and extract with any standard archiver
Activity granularityEach Moodle activity stores its data in a dedicated XML subdirectory, allowing selective inspection of individual forums, quizzes, or assignments
Associated platformGenerated and consumed server-side on Linux or Windows Moodle installations; the archive itself is inspectable on any operating system
ReleasedMoodle 2.0 (2010) introduced the modern backup format; tar.gz became the default backup container in Moodle 2.9 (2015)
Latest versionCurrent Moodle (4.x / 5.x) - .tgz (gzipped TAR) backups with MoodleBackup XML manifest
Specificationdocs.moodle.org

MBZ conversions

Community Q&A

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

Frequently asked questions

How do I open an MBZ file?
You restore it into Moodle rather than opening it as a document: on your Moodle site go to Course administration > Restore, upload the .mbz, and follow the wizard. To just inspect the contents, rename it to .tgz (or .zip for older backups) and open with 7-Zip.
Can I open an MBZ without Moodle?
You can extract and inspect it without Moodle (rename to .tgz/.zip, open with 7-Zip), but the inside is XML and media files, not a usable course. Actually using the course content requires restoring the MBZ into a Moodle site.
Why won't my MBZ open in WinZip / as a ZIP?
Modern Moodle backups (2.9+) are gzipped TAR, not ZIP - rename them to .tgz and use 7-Zip or tar. Only older Moodle backups are real ZIPs renamed to .mbz.
How do I restore an MBZ into a new term or another Moodle?
Use Course administration > Restore, upload the .mbz, then choose to restore into a new course or merge into an existing one. The target Moodle must be the same version or newer than the one that made the backup.
Does an MBZ contain student data?
It can. Moodle lets you back up 'with' or 'without' user data. A backup with user data includes enrolled users, their submissions and grades - handle it as confidential. A structure-only backup (no user data) is just the course template.
What does MBZ stand for?
It's commonly read as 'Moodle Backup Zip'. Despite the 'zip' in the name, modern MBZ files are actually gzipped TAR archives; only older ones are true ZIPs.

References

1MoodleDocs - Course backupdocs.moodle.org
2MoodleDocs - Backup and restore FAQdocs.moodle.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.BINCD/DVD Disc Image (BIN/CUE)
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.BUPDVD IFO Backup File
.BAKBackup File (generic)
.SKBSketchUp Backup File
.SETMicrosoft Backup File Set
.BAK~AbiWord auto-saved document file
.BACKUPBackup File (generic)

Free file tools

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

Open the toolbox

Browse file extensions A-Z