I want to be able to quickly generate an organic compound and export it to SVG format. In particular I need to be able to draw polymer units with brackets. Is there an online tool for this?
Maybe more than one support it, but I found one which does support SVG export (although it calls "SVG Image"), and that is the PubChem online molecule editor, which supports SMILES, SMARTS and InChI as well as all common chemical file formats.
The interface is a little dated, but it seems like it is possible to draw stuff rather quickly, and it does indeed export to SVG (Select "SVG Image" and hit the "Export" button"). Go try it out, and see if it suits you! If not, try out some of the alternatives from the list from Wikipedia linked at the top.
- Free & GPL
- Input formats support: Molfiles/Rxnfiles v2000 and v3000, SDF, RDF, CML, SMILES, SMARTS.
- Portability: Pre-built binary packages are provided for Linux and Windows (both 32-bit and 64-bit), and also for Mac OS X systems (both 10.5 and 10.6).
- Molecule and reaction rendering. Best picture quality among all available products. Easy SVG support.
- Automatic layout for SMILES-represented molecules and reactions.
- Canonical (isomeric) SMILES computation.
- Exact matching, substructure matching, SMARTS matching.
- Matching of tautomers and resonance structures.
- Molecule fingerprinting, molecule similarity computation.
- Fast enumeration of SSSR rings, subtrees, and edge subgraphs.
- Molecular weight, molecular formula computation.
- R-Group deconvolution and scaffold detection. Pioneer work in computing the exact maximum common substructure for an arbitrary amount of input structures.
- Combinatorial chemistry
- Plugins support in the API. As a reference, see the Renderer plugin distributed together with the Indigo API.
Some examples can be found in the manual, actual files not uploaded because they are SVG which is not supported here:
If you wish to draw such molecules yourself, rather than automatically, then you could use InkScape.
- SVG support - definitely
- You can draw whatever you would like but it will not generate the drawing from the formula.