Skip to content
TaskNinja

HomeToolsMAT File Viewer

MAT File Viewer

Open MATLAB .mat files without MATLAB, plot data, save CSV or Excel. Nothing is uploaded.

MatOpenFreeNo signupOn your device
Opening the tool…

What this tool does

MAT File Viewer opens a MATLAB .mat data file in this browser, lists every variable with its class and size, shows the values, plots numbers and saves CSV or Excel.

How to use it

  1. Choose the .mat file, or drop it on the box. It is read in your browser and never uploaded.

  2. Read the list of variables: name, size and class (double, int16, char, logical, cell, struct, string, datetime, table) and a preview of each value.

  3. Tap a variable. Numbers open as a table with paging and a line plot; structs, cell arrays and tables open their fields, items or columns, which you can tap again to go deeper.

  4. Press Download CSV for the variable on screen, All variables as CSV (ZIP), or Excel for one workbook with a sheet per variable.

Common uses

A .mat file is how MATLAB saves a workspace: measurements from a test rig, the output of a simulation, a dataset that came with a paper or a course, logged signals from Simulink. Python users write them too with scipy.io.savemat. The trouble starts when the file reaches someone without MATLAB: a student on a laptop at home, a reviewer, a colleague who works in Excel or Python, or anyone on a phone. Double clicking does nothing and MATLAB licences are expensive.

This page reads the file itself. Version 4 files, uncompressed version 6 files and the compressed version 7 files that MATLAB writes by default are read by our own code in a background worker, so a typical file opens in well under a second. Files saved with -v7.3, the HDF5 based format MATLAB uses for variables over 2 GB, are read with the HDF5 library compiled for the browser, loaded only when such a file is opened.

Every MATLAB type is shown the way MATLAB shows it. Matrices keep their rows and columns, N-D arrays are shown page by page as (:,:,2), complex numbers appear as a+bi, logical arrays as 0 and 1, int64 values keep every digit, char matrices are shown line by line, and sparse matrices are listed as row, column and value. Structs and struct arrays open as their fields, cell arrays as their items, and you can go as deep as the data goes.

Newer MATLAB data types are stored as class objects in a hidden part of the file. The viewer reads them too: string arrays as text, datetime as dates and times, duration as hh:mm:ss, categorical as its labels, and table and timetable as a real table with column names, row names and row times. These are the types most free viewers skip, and the ones that come out of readtable, timetable and Simulink logging.

Vectors and matrices with a few columns are plotted at once, one line per column, so you can see a signal or a step response before exporting anything. Long signals are thinned for the screen but the CSV keeps every value. The chart saves as a PNG for a report or a message.

For Excel, choose Excel (all variables): the first sheet lists every variable with its class and size, and each variable gets its own sheet. Excel's limit of 1,048,576 rows and 16,384 columns per sheet applies; anything bigger is cut short and the page tells you which variable, so you can use CSV instead.

Private, and the limits

Research data, test results and student work stay on your device. The file is read by a worker in this browser tab and the CSV, ZIP, Excel and PNG files are made on your computer. There is no upload, no account and no AI model. Closing the tab clears everything.

This is a viewer, not MATLAB. It does not run code and does not edit or save .mat files. Function handles are listed by name only, and objects of your own classdef classes show their saved properties. In -v7.3 files, class objects such as string and table are listed by name but not shown yet; save the file again with -v7 to see them. MATLAB is a trademark of The MathWorks, Inc. TaskNinja is not connected to MathWorks.

Official sources

Last checked 2026-11-18.

FAQ

How do I open a .mat file without MATLAB?
Choose the file on this page. Every variable is listed with its size and class, and you can tap one to see its values and a plot. Nothing needs to be installed and no licence is needed.
Is my .mat file uploaded anywhere?
No. The file is opened by this browser tab only. TaskNinja never receives it and nothing is kept after you close the tab.
Which MAT-file versions open?
Version 4 (save -v4), version 6 (save -v6), version 7 (the default, compressed) and version 7.3 (save -v7.3, HDF5). Files from GNU Octave and from Python's scipy.io.savemat, hdf5storage and mat-io open too.
Can I open a .mat file in Excel?
Not directly. Open it here and press Excel (all variables) for a workbook with one sheet per variable, or download a single variable as CSV, which Excel opens with a double click.
Does it show MATLAB tables, strings and dates?
Yes, in version 7 files: table and timetable open as tables with their column names and row times, string arrays as text, datetime as dates, duration as hh:mm:ss and categorical as labels.
Does it work on a phone?
Yes. On iPhone pick the file from the Files app, on Android from Downloads. The CSV, ZIP and Excel files are saved to your phone.
My file is a .fig, not a .mat. What now?
A .fig file is a saved MATLAB figure. Open it in the FIG File Viewer, which draws the plot and gives the plot data as CSV.
How big can the file be?
Up to 1 GB, limited by what a browser tab can hold. Version 7.3 files are read part by part, so large ones open as long as the variables you look at fit in memory.

Related tools

MAT to CSVFIG File Viewer (MATLAB figures)Simulink ViewerAll tools