SDF Structure Viewer
To get started, load your data using the Import Data button below. Once your structure is loaded, you can control the visualization using the “Tools Panel”.
Was this tool helpful?
The SDF File Viewer is a web-based tool made for chemists, researchers, and students who want to view Structure-Data Files (SDF) easily and accurately. It uses modern web graphics to turn chemical data into interactive 3D models right in your browser. You can analyze molecular geometry, study bonding patterns, or prepare images for publication without needing to install extra software.

Quick Start Guide: How to Use the Tool
Navigating the SDF File Viewer is intuitive. Here is how to get started using the interface:
- Load Your Structure:
- Navigate to the Input Options panel on the left.
- Click on “Upload Your Files” to select an .sdf file from your computer.
- Alternatively, you can choose “Import from Databases” (e.g., RCSB PDB or PubChem) or “Load from URL” if you have a direct link to a file.
- Interact with the Model:
- Rotate: Left-click and drag on the canvas to rotate the molecule.
- Zoom: Use your mouse wheel (or pinch on touch devices) to zoom in and out.
- Pan: Right-click (or Ctrl + Left-click) and drag to move the structure across the screen.
- Customize the View:
- Use the Tools Panel on the right side to modify the visuals.
- Quick Styles: Switch between different representations like “Default,” “Spacefill” (VdW spheres), “Surface,” or “Cartoon” to highlight different chemical features.
- Measurements: Use the “Add” button to calculate distances and angles between atoms.
How It Works
You may wonder how a text-based SDF file becomes a 3D model. The viewer uses chemical informatics and fast graphics rendering to make this happen.

1. Parsing the Connection Table
When you upload an SDF file, the application reads the raw text and looks for the Connection Table (C-Tab). This section contains the exact x, y, and z coordinates of each atom, as well as which atoms are connected and the bond type (single, double, or triple).
2. Geometry Construction
Once the data is parsed, the engine constructs a geometric scene. It maps the atomic coordinates to 3D space.
- Atoms are generated as geometric primitives (usually spheres), with radii determined by the element’s Van der Waals radius.
- Bonds are calculated by drawing cylinders between connected atoms.
- Colors are applied based on standard CPK coloring conventions (e.g., Carbon is gray/black, Oxygen is red, Nitrogen is blue).
3. WebGL Rendering
Finally, to display this geometry smoothly in your browser, the tool uses WebGL (Web Graphics Library). This enables the browser to use your device’s Graphics Processing Unit (GPU) to compute lighting, shadows, and depth in real time. This is why the viewer can handle complex visualization tasks, such as generating molecular surfaces or calculating electron density maps, at high frame rates purely on the client side.
Feedback & Bug Reporting
We work hard to ensure the viewer is stable and accurate, but sometimes issues can occur because chemical data formats are complex. If you find a rendering error, a file that won’t load, or a problem with the interface, please tell us. Your feedback helps us make the tool better for everyone.
How to report: Please visit our contact page at https://sciencecodons.com/contact/ and provide details about the issue. If possible, mention the browser you are using and the type of file that caused the error.
FAQ
Reference
- Sehnal, D., Bittrich, S., Deshpande, M., Svobodová, R., Berka, K., Bazgier, V., Velankar, S., Burley, S. K., Koča, J., & Rose, A. S. (2021). Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures. Nucleic Acids Research, 49(W1), W431–W437. https://doi.org/10.1093/nar/gkab314