MolViewer

Online PDB file viewer

MolViewer opens your .pdb files in 3D, free in the browser. Drag a file onto the drop zone in the viewer and the structure appears in seconds. The file is parsed on your own device, not uploaded. To try it, download a sample PDB file (crambin, 327 atoms). For a published structure, type a four-character PDB ID such as 4HHB instead. There is nothing to install and no account to create.

Open hemoglobin (4HHB) in the viewer

Hemoglobin (PDB 4HHB) as a cartoon colored by chain in the MolViewer online PDB viewer
Hemoglobin (PDB 4HHB) as a cartoon colored by chain in the MolViewer online PDB viewer

About the PDB file format

A PDB file is plain text with fixed-width lines of 80 columns. The first six characters name the record type. HEADER and COMPND say what the molecule is. ATOM lines hold the standard protein and nucleic acid residues, one atom per line: atom name, residue, chain, x, y and z in ångströms, occupancy and B-factor. HETATM lines do the same for everything else, such as ligands, metal ions and water. HELIX and SHEET list secondary structure, CONECT lists explicit bonds, and MODEL and ENDMDL separate the models of an NMR ensemble.

Fixed columns set hard limits: 99,999 atoms and 62 chains per file. Large assemblies do not fit, so in 2014 the worldwide PDB made PDBx/mmCIF its standard archive format. Docking programs, modelling tools and older datasets still write .pdb files.

MolViewer reads ATOM and HETATM records for coordinates, HELIX and SHEET records for secondary structure, and CONECT records for explicit bonds. When a file has no CONECT records, bonds are inferred from the distances between atoms. The structure takes its name from the HEADER or COMPND record. For a file with several models, only the first model is shown. For a field-by-field walkthrough with real examples, read how to read a PDB file.

Open a PDB file or a PDB ID

For your own file, open the viewer and drop the .pdb file on the drop zone, or click the zone to choose it. Files can be up to 5 MB. Besides PDB, MolViewer reads mmCIF, SDF and MOL and XYZ files.

For a published structure, type its PDB ID in the "Fetch from RCSB" box, or go straight to a URL such as molviewer.bio/pdb/1UBQ (ubiquitin). Entries fetched by ID come from RCSB in mmCIF, so structures too large for a .pdb file open the same way.

View a PDB file as cartoon, sticks or surface

When a PDB file opens, MolViewer sorts its residues into protein, nucleic acid, ligand, ion and water, and gives each a sensible default:

Colors can follow the file too. B-factor coloring reads columns 61 to 66 of each atom line, so flexible loops and chain ends stand out: see crambin colored by B-factor. Chain coloring uses the chain identifier in column 22. Element (CPK), residue type and rainbow from N- to C-terminus are also available.

Measure distances and read the sequence

Click atoms to measure distances in ångströms, bond angles and dihedral angles. Hover an atom to see what its ATOM or HETATM line says: atom name, residue, chain, occupancy and B-factor. Right-click an atom to focus the camera on it, start a measurement, add a 3D label, or select its residue or chain.

The sequence viewer lists each chain in one-letter codes with a secondary-structure bar. Click a residue to highlight it in 3D.

Compare, save and share structures

Load up to 10 structures, for example several models of the same protein, and show them overlaid or side by side, each with its own style and colors. Overlay keeps every file in its own coordinates. MolViewer does not superpose structures for you, so models that share a coordinate frame line up and unrelated entries do not.

Export PNG images at up to 4x resolution with an optional transparent background, save sessions in your browser, or create a short share link that restores the structures, camera, measurements and labels. To put a live viewer on a course page, embed it with an <iframe> that points at a URL such as /embed/pdb/4HHB.

Frequently asked questions

How do I open a PDB file without installing software?
Open molviewer.bio in any modern browser and drag the .pdb file onto the drop zone, or click the zone to choose the file. The structure appears in 3D. Nothing is installed, and the file is read on your own device.
What is the difference between PDB and mmCIF?
Both describe the same atoms. PDB is the older fixed-column text format, limited to 99,999 atoms and 62 chains. PDBx/mmCIF labels every value by name, has no such limits, and has been the archive standard of the worldwide PDB since 2014. MolViewer opens both.
Is this PDB file viewer free?
Yes. MolViewer is free and open source under the MIT license. It runs in any modern browser with WebGL 2, on desktop or mobile, with no install and no account.
Are my PDB files uploaded to a server?
No. Files you open from your computer are read and rendered in your browser. The only exception is when you choose to create a share link for a scene that contains a small local file; that file is then stored with the link so other people can open it.
Can it handle very large structures?
Local files can be up to 5 MB. Entries fetched by PDB ID come as mmCIF, so the old PDB limits of 99,999 atoms and 62 chains do not apply to them. Very large assemblies can still be slow on older phones and laptops. For whole viruses, cryo-EM maps or simulation trajectories, a specialist tool such as Mol* is a better fit.

Open hemoglobin (4HHB) in the viewer

Related