# SMILES to Formula, Molar Mass & Properties > Formula, molar mass, exact mass, rings and H-bond counts from SMILES, MOL or XYZ. Paste a SMILES string, a MOL/SDF block or XYZ coordinates and get the molecular formula, the molar mass from the IUPAC standard atomic weights with its uncertainty, the exact (monoisotopic) mass, ring and aromatic-ring counts, hydrogen-bond donors and acceptors, rotatable bonds, a canonical SMILES, a 2-D structure drawing and a MOL file. Part of the Proofline math notebook and its Molecule Lab. Part of usefulweb.app (https://usefulweb.app/). Part of [Proofline](https://proofline.usefulweb.app/) (ownerApp: proofline). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://prooflinesmilesinfo.usefulweb.app/ (interactive tool at https://prooflinesmilesinfo.usefulweb.app/tool) - JSON API: POST https://prooflinesmilesinfo.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://prooflinesmilesinfo.usefulweb.app/api/v1/tool) - OpenAPI: https://prooflinesmilesinfo.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://prooflinesmilesinfo.usefulweb.app/mcp - tool `proofline_smiles_info` ## Inputs - structure (textarea, required): Structure - A SMILES string (CCO, c1ccccc1, [NH4+]), a MOL/SDF V2000 block or XYZ coordinates. SMILES subset: organic atoms B C N O P S F Cl Br I and aromatic b c n o p s, bracket atoms with isotope, hydrogens and charge, bonds - = # :, branches, ring numbers and %nn, dots between parts. Stereo marks are read but not used. - format (select): Format ## Method - The structure is read by Proofline’s own parsers: SMILES (OpenSMILES subset), MDL MOL/SDF V2000 (first record) or XYZ (bonds from covalent radii, double bonds guessed from valences). Hydrogens that are not written follow the SMILES valence rules; Kekulé rings with six π electrons are perceived as aromatic. - Molar mass = Σ atoms × CIAAW standard atomic weight, with the combined uncertainty (the same calculation as the molar-mass tool). The exact mass adds the most abundant isotope of every element (AME2020) and corrects ions by the electron mass. - Rings are the smallest set of smallest rings (bonds − atoms + parts of them). H-bond donors and acceptors use Lipinski’s counting (O–H and N–H bonds; all N and O atoms). Rotatable bonds are single, non-ring bonds between two atoms that each have another heavy neighbour. - The canonical SMILES ranks atoms by their element, connections and charges, refined over the neighbours until stable; ties are broken one at a time. The MOL file has 2-D coordinates from Proofline’s layout and a Kekulé structure for aromatic rings. ## Limits - Counts follow simple published rules (Lipinski) and are not predictions of drug-likeness; stereochemistry is not handled. Nothing here is advice on handling chemicals safely.