GUIDE

What is a TDMS file? The format explained

TDMS (Technical Data Management Streaming) is a file format defined by NI (National Instruments) for measurement data. The extension is .tdms. This page explains what is inside the file. To open one, see How to open and plot TDMS files.

Updated: 2026-11-13

In one sentence

TDMS is a binary format that keeps measured values and their descriptions (names, units, sampling intervals and so on) in one file, and lets software append data while recording. NI software such as LabVIEW, NI-DAQmx, DIAdem and FlexLogger reads and writes it.

It is not text, so Notepad and Excel cannot read it directly. In return, the file is smaller than the same data in CSV, and both writing and reading are faster.

Three levels: file, group, channel

LevelRoleExamples
FileOne test or recording as a wholeTitle, author, date and time of the recording
GroupA set of channelsCategories such as "Vibration" and "Temperature", or one group per device
ChannelOne sequence of valuesAcceleration X, inlet temperature

Every level can carry any number of name and value pairs called properties. Only channels hold data. Each channel can have its own data type, number of values and sampling interval.

How the file is laid out: segments

A TDMS file is a sequence of segments. Each segment has three parts.

  1. Lead-in (28 bytes): a four-character tag (TDSm), a table-of-contents mask that says what the segment contains, a version number, the length to the next segment and the offset to the raw data.
  2. Metadata: the channels that have data in this segment, with their data types, value counts and properties. It can be omitted when nothing changed from the previous segment.
  3. Raw data: the values themselves, stored either channel after channel or interleaved (one value per channel in turn).

While recording, software only has to append new segments, so long measurements can be written without stopping. A file written in many small pieces ends up with many segments and can be slower to read (NI software offers a defragment function that rewrites it).

Data types and timestamps

  • Numbers: 8, 16, 32 and 64-bit integers (signed and unsigned), single and double precision floating point.
  • Strings: UTF-8.
  • Booleans: one byte.
  • Timestamps: whole seconds since 1 January 1904, 00:00 UTC, as an integer, plus the fraction of a second as another integer. No time zone is stored, so a reader converts to local time for display.

Files logged by NI-DAQmx during acquisition store the raw integers from the device (the DAQmx raw data format), with the scaling to volts, temperature and other units attached as properties.

Waveform properties

Evenly sampled data (a waveform) has no time column; the time axis is described by channel properties.

PropertyMeaning
wf_incrementTime between samples in seconds; the sampling rate is 1 divided by this value
wf_start_timeStart time of the waveform
wf_start_offsetOffset from the start time
wf_samplesNumber of samples per acquisition
unit_stringUnit of the values
wf_xname, wf_xunit_stringName and unit of X

.tdms_index and TDM

  • .tdms_index: an index file created next to the .tdms file with the same name. It copies only the lead-ins and metadata and holds no values. The .tdms file can be read without it.
  • TDM (.tdm and .tdx): an older format that keeps the descriptions in an XML .tdm file and the values in a binary .tdx file. TDMS is the better fit for appending while recording.

TDMS compared with CSV

TDMSCSV
ContentBinaryText
File sizeSmall (values kept in their own type)Large (numbers written as text)
Units, sampling interval and other descriptionsStored alongside as propertiesNo standard place
Data with different sampling intervalsEach channel keeps its ownHard to fit in one table
Software that opens itNeeds software that supports TDMSAlmost anything

To hand data to someone else or use it in software without TDMS support, exporting the TDMS file to CSV is the easy route.

Look inside a TDMS file

LOGADEC opens TDMS files with no installation. Start it from Try it in your browser and choose a .tdms file: each channel appears as a "group/channel" column, and you can select channels by group. After loading, you can list the file, group and channel properties, and export to CSV or Excel with [Export data].

No file at hand? Try the sample TDMS file (pump_test.tdms, 160 KB). The steps are in How to open and plot TDMS files.

Q

FAQ

FAQ
What does TDMS stand for?

Technical Data Management Streaming. It is a file format defined by NI for storing measurement data.

Can Excel open a TDMS file?

Not directly. Install the TDM Excel Add-In distributed by NI, or export the file to CSV or Excel with a tool such as LOGADEC and open that.

Can I delete the .tdms_index file?

The values are in the .tdms file, so no data is lost without the .tdms_index file. NI software recreates it when needed.

What is the difference between TDMS and TDM?

TDM is an older format split into two files: descriptions in .tdm (XML) and values in .tdx (binary). TDMS is a single file that can be appended to while recording.

+

More guides

GUIDES

How to open CSV files too large for Excel

Open and plot CSV files that Excel cuts off at its row limit, without splitting them.

How to plot a CSV file as a graph (free, no installation)

Turn measurement and logger CSV files into time-axis graphs, and avoid the usual pitfalls.

How to open and plot TDMS files

Open TDMS files from LabVIEW and NI instruments, then plot, analyze or export them to CSV.

How to open and plot LVM files

What is inside a LabVIEW measurement file (.lvm) and how to open and plot it without LabVIEW.

How to run an FFT on CSV data

Find the frequency components of vibration, noise and current waveforms in CSV files with an FFT.

How to find outliers and change points in time-series data

Find spikes (outliers) and steps (change points) in long logs with a numeric criterion.

How to plot WAV file waveforms

Plot the waveforms in WAV files from vibration and sound recorders on a time axis, then run FFT and other analyses.

How to open and plot COMTRADE files

Open COMTRADE records (.cfg and .dat) from protective relays and fault recorders, then plot and analyze the waveforms.

Try it with your own data, right now.