Converter tool

SMILES Molecule Drawer

Draw structures from SMILES, MOL or SDF with RDKit and read formula, molecular weight, LogP, TPSA, hydrogen-bond counts, rotatable bonds and Lipinski's rules.

SMILES or MOL block

1. One molecule

The first drawing loads RDKit (about 7.4 MB of WebAssembly from this site, cached by your browser afterwards). Structures over 600 atoms are refused (a 1,200-atom chain crashed the engine), and those over 400 atoms get properties but no drawing.

SDF, or a table or list of SMILES

2. Many molecules

SMILES Molecule Drawer

Operator: Abdulla Al Fahad. How tools are built and checked

A SMILES string is compact but unreadable: nobody can tell from CC(C)Cc1ccc(cc1)C(C)C(=O)O whether the ring is where they meant it to be. Drawing it takes one call to a cheminformatics toolkit, and so does computing the molecular weight, LogP and polar surface area that go with it, but that toolkit is rarely installed where you are.

This page runs RDKit, compiled to WebAssembly, in your browser. Paste a SMILES string or a MOL block to get a depiction and the usual descriptors, or drop an SDF file or a table of SMILES to get a property table for thousands of structures.

Key features

  • Depiction from SMILES or MOL block, saved as SVG, PNG or a MOL file
  • Formula, molecular weight, exact mass, Crippen LogP, TPSA, hydrogen-bond donors and acceptors, rotatable bonds, rings and stereocentres
  • Lipinski's rule of five, with each broken limit named
  • Canonical SMILES, InChI and InChIKey
  • Batch mode for SDF, CSV, TSV or one-SMILES-per-line files, up to 5,000 structures, exported as a property CSV

What RDKit calculates and where it differs from other tools

Paste a SMILES string, or a MOL block (a V2000 or V3000 connection table that ends with M END). The page decides which it is from the text. SMILES are limited to 1,500 characters. Two atom limits apply: a structure over 600 atoms is refused outright (a 1,200-atom chain crashed the WebAssembly engine), and one with 401 to 600 atoms is read and gets all its properties, canonical SMILES and MOL file, but no drawing. A batch file can be an SDF (records end with $$$$ and data items follow lines such as > <NAME>), a CSV or TSV with a SMILES column and an optional name column, or a plain list with one SMILES per line and an optional name after a space.

How it works

RDKit parses each structure, perceives aromaticity and assigns implicit hydrogens, then computes descriptors from its own implementations: molecular weight and exact mass from atomic masses, Crippen LogP and molar refractivity from atom-type contributions, TPSA from polar fragment contributions, and hydrogen-bond and rotatable-bond counts from substructure patterns. The page reads these values and does not recompute them.

Lipinski's rule of five uses RDKit's Lipinski definitions for donors (N-H and O-H groups) and acceptors (nitrogen and oxygen atoms), which are larger than the strict counts in the table: aspirin has 1 donor and 3 acceptors by the strict count and 1 and 4 by Lipinski's. A structure breaks a limit when its weight is over 500, LogP over 5, donors over 5 or acceptors over 10.

Common use cases

  • A student pastes the SMILES from a paper's supporting information to check that the drawing matches the figure, then saves the SVG for a slide.
  • A medicinal chemist exports 1,200 library members from an SDF into a CSV of weight, LogP and TPSA and filters out those with weight above 500 in a spreadsheet.
  • A reviewer cross-checks a list of 80 InChIKeys quoted in a manuscript against the structures in the supplement.

How to use this tool

  1. Paste a SMILES or MOL block, or press one of the example buttons, and choose Draw. The first drawing loads the engine.
  2. Read the properties and the Lipinski verdict, and save the image or MOL file.
  3. For many structures, drop an SDF or table into the second card and choose the SMILES and name columns.
  4. Compute properties, then download the CSV.

Example

First three rows of the example table (six drugs and one broken SMILES; the Load button supplies all seven)

name,smiles
aspirin,CC(=O)Oc1ccccc1C(=O)O
atorvastatin,CC(C)c1c(C(=O)Nc2ccccc2)c(-c2ccccc2)c(-c2ccc(F)cc2)n1CC[C@@H](O)C[C@@H](O)CC(=O)O
not a molecule,C1CC
...

Two of the rows, then the whole table

Aspirin: C9H8O4, weight 180.159, exact mass 180.0423, LogP 1.31, TPSA 63.6, 1 donor, 3 acceptors, 2 rotatable bonds, InChIKey BSYNRYMUTXBXSQ-UHFFFAOYSA-N
Atorvastatin: C33H35FN2O5, weight 558.650, LogP 6.31, TPSA 111.79: breaks two limits (weight above 500, LogP above 5)
Whole seven-row table: 6 of 7 rows read, 1 failed (C1CC leaves a ring open), 5 of the 6 pass Lipinski's rule

Tips for best results

  • A SMILES string can be written many ways, so compare molecules by canonical SMILES or InChIKey, not by the input text.
  • Atorvastatin's weight and LogP break two limits but it is a successful oral drug: the rule of five describes typical oral drugs, not a requirement.
  • In a batch table, read the Note column for the rows that did not parse; they usually have an unclosed ring number or bracket.

Common pitfalls

Crippen LogP is a calculated, atom-contribution value. It will differ from XLogP3 on PubChem and from measured octanol-water values, sometimes by a log unit.

Stereochemistry in the input is kept in the canonical SMILES and the InChI, but the 2D depiction does not show 3D conformation, and the page does not enumerate or assign unspecified stereocentres.

Salts and mixtures are treated as one structure: sodium chloride written as [Na+].[Cl-] gives the combined formula, and the molecular weight covers every component.

Metal complexes, organometallics and very large molecules (peptides over about 80 residues) may parse but depict poorly or exceed the 600-atom limit (above 400 atoms there is a properties table but no drawing).

A depiction is regenerated each time and may be laid out differently from the picture in a paper, even for the same molecule.

Common errors and how to fix them

RDKit could not read that as a SMILES string (check brackets, ring numbers and valence), or it has more than 600 atoms.
Count the opening and closing brackets and parentheses, and pair every ring-closure digit. A ring that opens with C1 must close with another 1.
The structure crashed the chemistry engine (it is probably too large or strained). The engine was reset; try a smaller molecule.
The WebAssembly module ran out of memory on that input and was reloaded. Shorten the molecule or split a large file.
The file is larger than 20 MB.
Split the SDF into files of a few thousand records each; the page reads up to 5,000 structures at a time.

Best practices

  • Save the canonical SMILES and the InChIKey next to a compound ID, not the drawing, when you record a structure.
  • Keep a name or ID column in tables you load so that rows that fail can be matched back to your source.

Reference values to compare with

All descriptors come from RDKit itself, the library compiled for this page (2026.09.1). Paste caffeine, CN1C=NC2=C1C(=O)N(C(=O)N2C)C, and you should see Crippen LogP -1.0293 and TPSA 61.82; aspirin gives LogP 1.3101 and TPSA 63.6. Ethanol's LogP is -0.0014, which the page shows as 0.00 and not as a negative zero.

The InChIKeys for aspirin, caffeine, ibuprofen, paracetamol and atorvastatin are the well-known BSYNRYMUTXBXSQ-UHFFFAOYSA-N, RYYVLZVUVIJVGH-UHFFFAOYSA-N, HEFNNWSXXWATRW-UHFFFAOYSA-N, RZVAJINKPMORJF-UHFFFAOYSA-N and XUKUURHRXDUEBC-KAYWLYCHSA-N; compare them with the values on PubChem.

Engine size and where it comes from

RDKit's WebAssembly build is about 7.4 MB and is served from this site, not from a third-party host. It loads the first time you draw or compute and your browser keeps it afterwards. The structures you enter are processed by that module in your browser only.

Batch limits

Batches stop at 5,000 structures and 20 MB. Properties are computed in chunks of 25 rows so the page stays responsive, and you can cancel a run. The grid of drawings shows the first 24 structures that parsed. The optional InChIKey column is slower because RDKit builds the InChI first.

Frequently asked questions

What happens with a structure of 500 atoms?

It is read, and every property, the canonical SMILES, the InChI and the MOL file are given, but no picture is drawn, because drawing is limited to 400 atoms. Above 600 atoms the page refuses it before RDKit sees it. In a batch, rows between 401 and 600 atoms get their properties and are left out of the grid of drawings.

Why does the page say aspirin has 3 acceptors and 4 Lipinski acceptors?

RDKit's strict acceptor count uses a pattern for atoms that can accept a hydrogen bond. Lipinski's original rule counts every nitrogen and oxygen, which gives 4 for aspirin's four oxygens.

Can I edit a structure by drawing on screen?

No. The page takes SMILES, MOL or SDF text and depicts it; there is no sketching canvas.

What InChI is supported?

The standard InChI that RDKit's build computes, and the InChIKey derived from it. The InChI is not available when RDKit cannot generate one for an unusual structure.

Why was my row skipped in the batch?

It either failed to parse, exceeded 1,500 characters or 600 atoms, or crashed the engine. The Note column says "could not be parsed" for the first case and "too long" for the second.