Molecular File Converter
Convert between chemical file formats with our web-based tool
Was this tool helpful?
Our PDB to XYZ Converter is a specialized web tool for simplifying molecular structure files. It efficiently transforms standard Protein Data Bank (PDB) files to the minimalist XYZ format by stripping away complex biological metadata like residue and chain information. This conversion provides a clean, coordinate-only file ideal for use in quantum mechanics software, certain visualization programs, and other computational chemistry applications.

How to use (step-by-step)
Follow these simple steps to convert your file in seconds.
- Choose Your Formats: Use the “Input Format” and “Output Format” dropdown menus to select the conversion you need. Ensure PDB (Protein Data Bank format) is selected as the input and XYZ (XYZ cartesian coordinates format) as the output.
- Upload Your File: Click “Upload File” or drag and drop your file directly into the designated area. You can also paste the file’s content using the “Paste Content” option.
- Start the Conversion: Press the “Convert File” button to begin the process. The tool will process your file instantly.
- Download Your File: Once the conversion is complete, a download link for your new
.xyzfile will appear. Click it to save the file to your device.
Tip: If you encounter an error during conversion, please check the Troubleshooting Guide section below—common causes and fixes are listed.
Input, Output, and Key Changes
Understanding the transformation from PDB to XYZ is essential for preparing structures for specific computational tasks. Here’s a breakdown of the formats and the changes that occur during conversion.
Sample Input (PDB Format)
The PDB format is the standard archive format for 3D structural data of biological macromolecules like proteins and nucleic acids. It contains detailed information, including atomic coordinates, residue names, chain identifiers, and experimental data.
Example of a PDB file:
ATOM 1 N ALA A 1 27.222 18.238 35.532 1.00 28.80 N
ATOM 2 CA ALA A 1 27.569 19.523 34.842 1.00 28.80 C
ATOM 3 C ALA A 1 26.399 20.443 34.729 1.00 28.80 C
ATOM 4 O ALA A 1 26.435 21.378 35.495 1.00 28.80 O
ATOM 5 CB ALA A 1 28.670 19.255 33.832 1.00 28.80 C
ATOM 6 H ALA A 1 26.321 18.312 35.978 1.00 0.00 H
ATOM 7 HA ALA A 1 27.989 19.412 35.781 1.00 0.00 H
Sample Output (XYZ Format)
The XYZ format is a simple, plain-text format for representing Cartesian coordinates of atoms. It omits all metadata found in PDB files, retaining only the element symbol and its x, y, and z coordinates. Its simplicity makes it a universal format for visualization tools and quantum chemistry software.
Example of the first PDB line after conversion to XYZ format:
N 27.22200 18.23800 35.53200
Key Changes in the Conversion Process
The conversion from PDB to XYZ focuses on radical simplification for computational chemistry applications:
- Removal of Biological Context: All information related to residues (e.g., ALA), chains (e.g., A), and sequence numbers is completely removed. This is critical for software that only requires a list of atoms and their positions in space.
- Stripping of Metadata: PDB files contain extensive header information (
HEADER,REMARK, etc.) and data in columns for occupancy and B-factors. The XYZ format discards all of this, retaining only the essential coordinate data. - Simplification to Element and Coordinates: Each
ATOMorHETATMrecord from the PDB file is reduced to a single line containing just the chemical element symbol and its corresponding x, y, and z coordinates.
Compatible Software
The generated XYZ files are ready to be used with a wide range of molecular modeling and computational chemistry software, including:
- Visualization: VMD, Avogadro, Jmol, PyMOL, UCSF Chimera/ChimeraX
- Quantum Mechanics: Gaussian, ORCA, NWChem, GAMESS
- Other Tools: Various analysis scripts and programs that require simple coordinate input.
Troubleshooting Guide
Encountering an error can be frustrating, but most issues are easy to fix. Here are the most common problems you might face and how to resolve them.
General Tool Errors
- Error: “File size exceeds the limit”
- Why it happens: Your uploaded file is larger than the maximum allowed size. Our server has this limit to ensure quick processing for all users.
- How to fix: If your PDB file is exceptionally large, try removing unnecessary elements like solvent molecules (
HOH) or selecting only a specific chain of interest. For processing larger files, please contact us for custom solutions.
- Error: “Processing timed out”
- Why it happens: The conversion for your molecule is taking too long, which can happen with extremely large or complex structures.
- How to fix: Try to simplify your input file. If the issue persists because your structure is inherently complex, please contact us to discuss options for handling larger computations.
- Error: “CAPTCHA validation failed”
- Why it happens: Our system uses a CAPTCHA to prevent automated bots. This error occurs if the CAPTCHA was not solved correctly or timed out.
- How to fix: Simply reload the page and solve the new CAPTCHA. If you continue to have trouble, please get in touch with our support team.
Conversion-Specific Errors
These errors typically relate to the scientific data within your PDB file.
- Error: “Unrecognized element or atom name”
- Why it happens: The PDB file contains non-standard atom names that the converter cannot map to a chemical element (e.g., ‘CAL’ instead of ‘CA’ for a calcium ion).
- How to fix: Ensure all atom and residue names conform to the standard PDB format. You may need to manually edit the PDB file to correct these names or ensure the element symbol is correctly specified in columns 77-78.
- Error: “Empty or malformed output file”
- Why it happens: The input PDB file might not contain any
ATOMorHETATMrecords, or its structure is fundamentally broken (e.g., incorrect column formatting, corrupted data). - How to fix: Open the PDB file in a text editor or molecular viewer to verify its integrity. Ensure that it contains atomic coordinate data and follows the standard PDB column layout.
- Why it happens: The input PDB file might not contain any
- Error: “Could not read file / Invalid format”
- Why it happens: The uploaded file is not a valid PDB file, even if it has a
.pdbextension. It could be corrupted, empty, or an entirely different file type. - How to fix: Confirm that the file content is structured as a PDB file. Try re-downloading the file from its source or opening and saving it with molecular visualization software to correct potential formatting issues.
- Why it happens: The uploaded file is not a valid PDB file, even if it has a
If your problem isn’t listed here, we want to know about it! Please help us improve the tool by reporting the issue.
Support Our Work
We are committed to keeping our scientific tools free and accessible for everyone. If this tool has been helpful in your work, please consider supporting our mission with a donation. Your support directly helps us cover server costs and fund the development of new, powerful tools for the scientific community.
FAQ
References & Suggested Reading
This tool was developed in line with established principles in computational chemistry for accurate, reliable results. The resources listed below are the foundational research and key papers that define these standards, and we highly recommend them for a deeper understanding of the scientific principles.
- Hanwell, M. D., Curtis, D. E., Lonie, D. C., Vandermeersch, T., Zurek, E., & Hutchison, G. R. (2012). Avogadro: an advanced semantic chemical editor, visualization, and analysis platform. Journal of Cheminformatics, 4(1), 17. https://doi.org/10.1186/1758-2946-4-17
- O’Boyle, N. M., Banck, M., James, C. A., Morley, C., Vandermeersch, T., & Hutchison, G. R. (2011). Open Babel: An open chemical toolbox. Journal of Cheminformatics, 3(1), 33. https://doi.org/10.1186/1758-2946-3-33
- Frisch, M. J., Trucks, G. W., Schlegel, H. B., Scuseria, G. E., Robb, M. A., Cheeseman, J. R., Scalmani, G., Barone, V., Petersson, G. A., Nakatsuji, H., Li, X., Caricato, M., Marenich, A. V., Bloino, J., Janesko, B. G., Gomperts, R., Mennucci, B., Hratchian, H. P., Ortiz, J. V., … Fox, D. J. (2016). Gaussian 16, Revision C.01. Gaussian, Inc.