Convert MF4 to CSV

What changes when you convert MF4 measurement files to CSV, what can be lost, how to keep the result usable, and when to keep the original MF4.

MF4 files use version 4 of the ASAM MDF (Measurement Data Format) standard. This binary format is produced by data loggers and measurement software, mostly in automotive development and on test benches. Converting an MF4 file to CSV turns it into delimited text that spreadsheets, scripts and databases can read without MDF support. This review explains what the conversion changes, what it can lose, and when the original file is the better choice. No tool-specific documentation or test results were available for this article, so it describes how the formats behave in general and does not rank individual converters.

Is converting MF4 to CSV the right move?

CSV is a good fit when you need a selected set of signals in a form almost any tool can open, for example for a quick spreadsheet check, a script, or a colleague who has no MDF viewer. The main benefit is reach: CSV is plain text and needs no special library.

The main tradeoff is structure. An MF4 file can hold several channel groups, each with its own timestamps, along with units, conversion rules and other metadata. CSV holds one flat table. To get a single CSV you usually have to either split the data into several files or resample everything onto a shared time grid, which interpolates or repeats values.

Keep the MF4 file as your primary copy, and convert only what you need, in these cases: you need an archive or source of truth, the logs have very high sample rates or many channels, the file contains undecoded bus frames, you rely on events, attachments or conversion rules, or the recipient's software can read MDF directly.

What the conversion actually changes

This is not a character-level text transformation such as reversing or restyling text. Here, “convert” means re-encoding structured binary measurement data as delimited text. These are the changes that matter most:

  • Encoding: binary numeric values become decimal text. Whether full precision survives depends on how many digits the converter writes.
  • Structure: channel groups with independent time bases are flattened, either into separate files or onto a common time grid.
  • Raw versus physical values: MDF can store conversion rules, from linear scaling to value tables and text tables that map numbers to state labels. A converter may apply these rules or export raw values, and text-table channels may end up as labels or as numbers.
  • Metadata: units, channel comments, source information, events and attachments have no standard place in CSV. Some tools add units to the header or to a second row, but this is not standardized.
  • Bus logging: raw CAN, LIN or similar frames need a database description, such as a DBC file, to be decoded into named signals. Without one, the CSV contains frame identifiers and payload bytes.
  • Size: MDF 4.1 and later supports compressed data blocks, while CSV is uncompressed text. The CSV is therefore usually larger. No measured size comparison was available for this article.

It also helps to separate stored values from displayed ones. When you open a CSV in a spreadsheet, the application may round numbers, switch to scientific notation or reformat timestamps, while the file still holds the original text. If you save the file back from the spreadsheet, the displayed form can overwrite the original. To see what the converter actually wrote, open the CSV in a plain text editor.

Separate files, resampling or a channel subset

Approach | What you get | Main risk
One CSV per channel group | Original timestamps preserved | Several files to align or join later
Single resampled CSV | One table on a common time grid | Interpolated or repeated values; information lost if you downsample
Selected channels only | Smaller, more focused file | Context from omitted channels is lost
timestamps,<channel_1> [<unit>],<channel_2> [<unit>]
<t0>,<value>,<value>
<t1>,<value>,<value>

The snippet above shows only the general shape of a resampled export. Column naming, unit placement and time format vary by tool. MDF also allows the same channel name to appear in different groups, so converters may append suffixes to keep column headers unique. Check the headers before you map columns in later processing.

Will the CSV stay readable and usable once shared?

Separators and locale: some regional settings use a comma as the decimal mark, which clashes with comma-delimited files. If recipients use different locales, agree on the delimiter and decimal mark in advance, or use tab-separated output.

Character encoding: unit symbols such as the degree sign or micro sign can display incorrectly if the receiving application guesses the wrong encoding. Export as UTF-8 and test the file in the application your recipient actually uses, rather than assuming one successful view applies everywhere.

Size limits: Excel's documented maximum is 1,048,576 rows per worksheet, and long or high-rate logs can exceed it. For large exports, a script, a database or a dedicated analysis tool is more reliable than a spreadsheet.

Time reference: an MF4 file records its measurement start time in the file header, while many exports write only seconds relative to the start. If absolute time matters, make sure it is preserved in a column, the header or the file name.

Copying and pasting: pasting CSV text directly into a spreadsheet can split columns incorrectly or turn identifiers into dates or numbers. A text-import step, where you set the delimiter and column types, avoids most of these problems.

Accessibility, search and editing: as plain text, CSV can be searched, compared between versions, and read by screen readers in a text editor or spreadsheet. However, very wide tables with terse signal names are hard to navigate with assistive technology, so descriptive headers and smaller channel subsets help. No scoped test with a specific screen reader was available for this article.

A note on online converters

Measurement logs can contain vehicle identifiers, GPS positions and precise timestamps. A converter's design or marketing language tells you nothing about how it handles uploaded files. Read its documented data-handling policy, or convert locally if the data is sensitive.

Checks before you rely on the output

  • Compare the time range and approximate sample counts with what your MDF viewer shows.
  • Spot-check a few values against the original file.
  • Confirm whether the values are raw or physical.
  • Make sure units are recorded somewhere the recipient will see them.
  • Note whether the data was resampled and, if so, at what interval.
  • Verify the encoding, delimiter and decimal mark.
  • Open the file in the recipient's actual tool.

Evidence gaps

No converter documentation, benchmark results, file-size comparisons, processing speeds or pricing were supplied for this article. The statements above describe general MDF and CSV behavior. Confirm the specific options, such as resampling methods, unit handling and bus decoding, in the documentation for the converter you choose.