Molecule to ASCII
May 4, 2026 · View on GitHub
>curl "https://mol2txt.app?smi=O(c1ccccc1C\C=C)CC(O)CNC(C)C"
C C
│ ║
C─O C─C
│ │
C N C O C
╲ ╱ ╲ ╱ ╲ ╱│╱╲╲
C C C C C
│ ║ │
C C─C═C
>curl "https://mol2txt.app?name=(RS)-1-(propan-2-ylamino)-3-(1-naphthyloxy)propan-2-ol"
C
│
C
/│
C N
│
C O
╲ /
C
│
C─O
│
C C
║╲ / ╲
C C C
│ │ │
C═C─C═C
>curl "https://mol2txt.app?smi=CC(C)NCC(COC1=CC=CC=C1CC=C)OCC&format=png" --output mol.png
Reactions
Reaction SMILES can be passed with rxn, reaction, or smi:
>curl "https://mol2txt.app?rxn=C.C>>CC"
C + C ──> C ─ C
>curl "https://mol2txt.app?rxn=CCO>O>CC=O&format=svg" --output rxn.svg
>curl "https://mol2txt.app?rxn=CCO.O>>CC=O.O&format=png" --output rxn.png
Multistep reaction SMILES are supported too:
>curl "https://mol2txt.app?rxn=C>>CC>>CCC"
C ──> C ─ C ──> C─C─C
>curl "https://mol2txt.app?rxn=CCO>O>CC=O>N>CC=N&format=png" --output multistep.png