$ dot -Tascii input.dot
Since Graphviz 13.0.0, if Graphviz was built with AAlib support, the output format ascii will produce an ASCII art representation of the input graph.
ascii