Skip to main content

GoAT

GoAT converts ASCII-art diagrams into SVG.

Use this type​

Use GoAT for boxes, arrows, grids, and compact diagrams that remain useful as text.

Source format​

The source format is ASCII diagram text. Enter the source in the diagram.zip editor.

Syntax essentials​

  • Use ASCII or supported Unicode line characters.
  • Close shapes when you need filled regions.
  • Add arrowheads at the end of a connector.
  • Keep labels away from connector intersections.

Example​

+-------------------+ ^ .---.
| ‗A Box‗ |__.--.__ __.--> | .-. | |
| | '--' v | * |<--- | |
+-------------------+ '-' | |
`Round` *---(-. |
.-----------------. .-------. .----------. .-------. | | |
| Mixed Rounded | | | / Diagonals \ | | | | | |
| & Square Corners | '--. .--' / \ |---+---| '-)-' .--------.
'--+------------+-' .--. | '-------+--------' | | | | / Search /
| | | | '---. | '-------' | '-+------'
|<---------->| | | | v Interior | ^
' <---' '----' .-----------. ---. .--- v |
.------------------. Diag line | .-------. +---. \ / . |
| if (a > b) +---. .--->| | | | |`Curved line` \ / / \ |
| obj->fcn() | \ / | '-------' |<--' + / \ |
'------------------' '--' '--+--------' .--. .--. | .-. +Done?+-'
.---+-----. | ^ |\ | | /| .--+ | | \ /
| | | Join \|/ | | `Curved` | \| |/ | | \ | \ /
| | +----> o --o-- '-' Vertical '--' '--' '-- '--' + .---.
<--+---+-----' | /|\ | | 3 |
v not:line 'quotes' .-' '---'
.-. .---+--------. / A || B ·bold· | ^
| | | Not a dot | <---+---<-- A dash--is not a line v |
'-' '---------+--' / Nor/is this. ---
Rendered exampleDrag to pan. Use the wheel or controls to zoom.
100%
This view uses the live diagram.zip renderer.

Upstream reference​

GoAT documentation