MolDraw › Chemistry tools › Batch Chemical Converter

Batch Chemical Converter (CSV in, CSV out)

In short: Convert a whole list of SMILES, names, CAS numbers, PubChem CIDs, InChI or InChIKeys at once. Get canonical SMILES, formula, molecular weight, exact mass, InChI, InChIKey, IUPAC name, LogP, TPSA, H-bond donors and acceptors and a Lipinski check, then download CSV, TSV or SDF. It is free, works in your web browser and needs no download.

Paste one identifier per line or open a CSV, TSV or TXT file. SMILES are processed on your device, up to 5,000 rows per run. Names, CAS numbers and other identifiers are looked up in PubChem first; those rows are marked online.

Quick answer: Press Convert on the 20 example drugs below. Aspirin, CC(=O)Oc1ccccc1C(=O)O, gives C9H8O4, MW 180.159 g/mol, exact mass 180.0423, TPSA 63.6 Ų, 1 donor, 4 acceptors and a Lipinski Pass. Then press Download CSV.

Outputs

Ready.

How to convert a list of chemicals

  1. Paste your list, or press Open CSV / TSV / TXT. One value per line works, and so does a spreadsheet saved as CSV.
  2. Check the line under the box. It says how many rows and columns were read and which separator was found.
  3. For a table, choose the Identifier column and tick First row is a header if row 1 holds column names.
  4. Leave Input type on Detect for each row, or force SMILES, Name, CAS number, PubChem CID, InChI or InChIKey.
  5. Tick the Outputs you need. Outputs marked online need an internet lookup.
  6. Press Convert. The progress bar shows rows done, errors and online lookups. Press Stop to end early and keep what is done.
  7. Check the preview, then press Download CSV, Download TSV or Download SDF.

Inputs and outputs

InputExampleHow it is read
SMILESCN1C=NC2=C1C(=O)N(C(=O)N2C)COn your device
Name (common or IUPAC)caffeineOnline, PubChem
CAS Registry Number58-08-2Check digit tested, then PubChem
PubChem CID2519Online, PubChem
InChIInChI=1S/C8H10N4O2/…Online, PubChem
InChIKeyRYYVLZVUVIJVGH-UHFFFAOYSA-NOnline, PubChem

What each output means

OutputMeaningSource
Canonical SMILESOne standard SMILES per structure, so duplicates matchLocal
Molecular formulaHill order (C, H, then A–Z), net charge addedLocal
MW (g/mol)Average molar mass from standard atomic weightsLocal
Exact massMonoisotopic mass (most abundant isotope of each element), for mass spectrometryLocal
InChI, InChIKeyStandard IUPAC identifiers for database searchesOnline
IUPAC nameSystematic name from PubChem, when the compound is listedOnline
cLogPCalculated octanol–water partition coefficientLocal
TPSA (Ų)Topological polar surface area from N and O contributionsLocal
HBD, HBAH-bond donors (N–H, O–H) and acceptors (N and O atoms)Local
LipinskiPass if at most one rule-of-five limit is brokenLocal

Worked examples

Aspirin from SMILES

CC(=O)Oc1ccccc1C(=O)O

C9H8O4, exact mass 180.0423, TPSA 63.6 Ų, HBD 1, HBA 4.

MW 180.159 g/mol, Lipinski Pass

Caffeine from its CAS number

58-08-2 passes the check digit test and is looked up online.

C8H10N4O2, TPSA 58.4 Ų, HBD 0.

MW 194.19 g/mol, InChIKey RYYVLZVUVIJVGH-UHFFFAOYSA-N

A spreadsheet with IDs

Columns id;smiles;IC50 separated by semicolons.

The separator and the SMILES column are found automatically.

Your id and IC50 columns are kept next to the results

Atorvastatin

MW 558.6 g/mol and cLogP above 5.

Two rule-of-five limits are broken.

Lipinski Fail (MW > 500; LogP > 5)

Common mistakes

Want to see a structure? Paste any SMILES into MolDraw, a free online chemical structure editor, to draw, edit and export it as PNG, SVG or MOL.

Open MolDraw editor

Frequently asked questions

How do I convert a list of SMILES to molecular weights at once?

Paste the SMILES one per line, or open a CSV file and pick the SMILES column. Keep MW (g/mol) ticked and press Convert. When it finishes, press Download CSV. SMILES are processed on your device, so up to 5,000 rows take only seconds.

Which inputs need an internet lookup?

SMILES are read on your device. Names, CAS numbers, PubChem CIDs, InChI and InChIKeys are first looked up in the free PubChem database to get the structure. InChI, InChIKey and IUPAC name outputs are also looked up online. Online rows are marked online in the preview and are limited to about four per second.

Can I upload a CSV with several columns?

Yes. The converter detects comma, tab, semicolon and pipe separators, quoted cells and a byte order mark. It guesses the header row and the identifier column, and you can change both. Tick Keep my other columns to copy your IDs or activity values into the output.

What does the Lipinski column mean?

Lipinski's rule of five flags poor oral absorption when a compound breaks more than one of: MW ≤ 500, LogP ≤ 5, at most 5 H-bond donors and at most 10 H-bond acceptors. Pass means zero or one violation. The violations column lists which limits were broken.

Why does my LogP differ from PubChem's XLogP3?

There are several ways to estimate LogP. This converter uses a calculated cLogP from atom contributions, while PubChem reports XLogP3. The two usually agree within about one unit. Compare compounds with the same method.

What is in the SDF download?

One record per converted row: a 2D structure with coordinates, the input as the title line, and each chosen output (formula, MW, LogP and so on) as an SDF data field. Most chemistry programs and databases can open it.

Why did a row fail?

The Status column gives the reason: for example a SMILES with an unclosed ring or bracket, a CAS number with a wrong check digit, or a name PubChem does not know. Fix the input and run the converter again. The other rows are not affected.

Related chemistry tools

Last updated: