DVI

dvi icon

TeX text document (TeX Device Independent File Format)

File type: Document file

A dvi file is a document in the TeX Device Independent (DVI) format. It contains the main typeset output produced by TeX or LaTeX.

The file is intended for processing by a DVI driver or viewing by a DVI previewer.

What is dvi file?

File type category:
Document file

Date updated: October 17, 2026

The TeX Device Independent File Format is part of the TeX typesetting system and is also used by LaTeX and other TeX-based systems. A dvi file stores typesetting instructions, including the placement of characters and other page elements, without targeting a specific printer or display device.

A DVI driver interprets the file to produce output for a particular printer, such as a LaserJet, or for another format such as PostScript or PDF. A DVI previewer can display the pages on a computer screen.

On Microsoft Windows, LaTeX and MiKTeX can generate and process DVI files. LyX for macOS can work with TeX documents that produce DVI output, and Okular on Linux and Unix can display DVI files. DVI remains supported in the TeX ecosystem, although PDF is now more commonly used for final document distribution. The associated MIME type is application/x-dvi.

How to open dvi file?

Use a DVI viewer to open a dvi file. Okular can display DVI files on Linux and Unix.

On Microsoft Windows, LaTeX or MiKTeX can process the file with the appropriate TeX tools. LyX for macOS can work with TeX documents and their generated output.

How to convert dvi file?

A dvi file can be converted to PDF for viewing, printing, or publishing with DVI-to-PDF tools included with or used alongside TeX distributions such as MiKTeX. It can also be processed into printer-oriented output such as PostScript.

When the original TeX or LaTeX source is available, the most reliable approach is usually to compile that source directly to PDF rather than convert the existing DVI file.

Technical details

MIME types
  • application/x-dvi
File signature
HEX 20 54 65 58 20 6F 75 74 70 75 74
ASCII TeX output
Offset 14

Suggested software to open dvi file:

Associated software actions with the dvi file

Software applications that can open dvi files:

Microsoft Windows

Apple macOS / Mac OS X

Linux/Unix

Software applications that can edit dvi files:

Microsoft Windows

Apple macOS / Mac OS X

Linux/Unix

Software capable of saving dvi files:

Microsoft Windows

Apple macOS / Mac OS X

Linux/Unix

Software apps that create dvi files:

Microsoft Windows

Apple macOS / Mac OS X

Linux/Unix

Software apps that export dvi files:

Microsoft Windows

Related file extensions