.XYZ

XYZ File

XYZ Molecular Coordinates File (Cartesian chemical model)
Ask a question
QUICK ANSWER

An XYZ file is a plain-text file listing a molecule's atoms and their 3D Cartesian coordinates. Open it with free chemistry software such as Avogadro or Jmol to see the molecule in 3D, or read the raw numbers in any text editor. The same extension is also used for GPS/survey point data and a Nintendo Wii image format - check the file's source if it does not look like chemistry.

Developer: Originated with the XMol program (Minnesota Supercomputer Center); now a de facto community standard Category: Data Files Open standard MIME: chemical/x-xyz
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

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

.xyz is a plain-text file format supported by various chemistry programs. .xyz files store molecule data in plain text: the number of atoms (line 1), a free-form comment (line 2), and one line per atom with an element symbol and X, Y, and Z coordinates in angstroms. Although .xyz has no formal specification, it is widely used - a de facto community standard originating with the XMol program in the early 1990s.

The format stores only element symbols and coordinates; it carries no bond orders, partial charges, or unit-cell data by default. A popular extension called extended XYZ (extxyz) adds key=value metadata on the comment line. Multiple blocks can be concatenated in one file to store a trajectory. The MIME type is chemical/x-xyz.

The .xyz extension is not used exclusively by chemistry programs. It is not uncommon to see text files of any kind saved with an .xyz suffix. Before working with .xyz files, it is advised to turn off Windows' "hide extensions for known file types" option to avoid file-identification issues. Related formats include .mol, .pdb, and .cif.

Security & safety

RISK: LOW

An XYZ file is plain text containing only atom labels and numbers - no executable content, no macros - so it is essentially harmless to open. The only practical caveat is mistaken identity: a .xyz might actually be GPS/survey point data or a Wii game image rather than a molecule, in which case a chemistry viewer will fail or show nonsense; check the file's source. Download chemistry tools from their official sites (avogadro.cc, openbabel.org).

Format details

in a nutshell
FULL NAMEXYZ Molecular Coordinates File (Cartesian chemical model)aka XYZ chemical file format, XMol XYZ
DEVELOPEROriginated with the XMol program (Minnesota Supercomputer Center); now a de facto community standardsince Early 1990s (XMol)
CATEGORYData Files
MIME TYPEchemical/x-xyz
TYPEPlain-text list of atoms with Cartesian (x, y, z) coordinates
STANDARDOpen · royalty-free
This extension is also used by…
  • GPS / surveying point data (.xyz) - A plain-text list of easting/northing/elevation or longitude/latitude/altitude points used by GIS and surveying tools; structurally just delimited numbers, not chemistry.
  • Nintendo Wii image (.xyz) - An RLE-compressed indexed bitmap image format found in some Wii games; unrelated to the molecular format.

Programs that open XYZ files

Windows4 apps
Avogadro Open-source Open the .xyz to render the molecule in 3D; rotate, measure, edit, and export to other formats. Free, recommended.
Jmol Open-source Open the .xyz to view and animate the structure (great for trajectories). Free Java viewer.
VMD Free Load the .xyz for molecular visualization and trajectory playback (strong for MD).
Notepad / any text editor Open-source Open the .xyz to read/edit the raw coordinates directly (it's plain text).
macOS2 apps
Avogadro Open-source Open the .xyz to visualize and edit the molecule in 3D; export to other formats.
Jmol / VMD Open-source View and animate the structure/trajectory.
Linux2 apps
Avogadro Open-source Open the .xyz for 3D visualization and editing; convert to other formats via the built-in Open Babel integration.
Jmol / VMD Open-source Visualize and animate molecular structures and trajectories.
Web1 app
MolView Free Paste/import XYZ coordinates to view the molecule in 3D in the browser, no install.

Technical details

deep spec
MIME typechemical/x-xyz
Alternate MIME typetext/plain
EncodingPlain text - ASCII or UTF-8
File structureLine 1: integer atom count; line 2: free-form comment; each following line: element symbol and three floating-point x, y, z values
Coordinate unitAngstroms (Å) by default
Coordinate systemCartesian (absolute x, y, z positions)
Bond dataNot stored; only element symbols and atomic positions are recorded
Extended variantExtended XYZ (extxyz): key=value metadata pairs and a Lattice= tensor written to the comment line
Multi-frame supportYes - multiple coordinate blocks concatenated in one file form a trajectory or animation
File signatureNone (no magic bytes); identified by an integer on the first line followed by a comment and element-symbol lines
CompressionUncompressed by default; large trajectories are commonly gzip-compressed as .xyz.gz
Typical file sizeA few hundred bytes for small molecules; hundreds of MB for long molecular-dynamics trajectories
PlatformCross-platform - identical format on Windows, macOS, and Linux
OriginXMol molecular visualization program, Minnesota Supercomputer Center, early 1990s
ReleasedEarly 1990s (XMol)
Latest versionNo formal version - a stable de facto text format; 'extended XYZ' adds metadata
Open standardYes · royalty-free
Specificationen.wikipedia.org

XYZ conversions

Community Q&A

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

Frequently asked questions

What is an XYZ file?
A simple plain-text file listing a molecule's atoms and their 3D Cartesian coordinates: line 1 is the atom count, line 2 a comment, then one line per atom with an element symbol and x, y, z values. It's the most common interchange format in computational chemistry.
How do I open an XYZ file?
Use a free molecular viewer - Avogadro (recommended), Jmol or VMD - to see the molecule in 3D, or open it in any text editor to read the raw coordinates. In a browser, MolView can display it.
How do I convert an XYZ file to MOL or PDB?
Use Open Babel ('obabel molecule.xyz -O molecule.mol' or '-O molecule.pdb') or Avogadro's export. The converter infers bonds from atom distances, since XYZ itself stores no bonds.
Why doesn't my XYZ file show any bonds?
Because the XYZ format stores only atom positions, not bonds. Viewers like Avogadro/Jmol draw bonds by guessing them from interatomic distances; convert to MOL/SDF/PDB if you need explicit bond information.
Can an XYZ file store more than one structure?
Yes - concatenate multiple atom-count/comment/coordinate blocks in one file to store a trajectory or animation (e.g. an optimization or MD run). Jmol and VMD play these frame by frame.
My .xyz file isn't a molecule - what else could it be?
The extension is also used for GPS/survey point lists (easting/northing/elevation) and, rarely, a Nintendo Wii game image. If a chemistry viewer can't read it, identify it by where the file came from.

References

1Wikipedia - XYZ file formaten.wikipedia.org
2Avogadro - free cross-platform molecule editor/visualizeravogadro.cc

Keep exploring

across the database

Top extensions this week

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

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

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

Open the toolbox

Browse file extensions A-Z