Convert architecture diagrams to code
An AI tool that transforms screenshots and images of diagrams into Mermaid code, enabling version-controlled documentation.
Overview
Technical teams often inherit diagrams in image format—screenshots from presentations, exported PNGs from diagramming tools, or photos of whiteboard sessions. These images can't be version controlled, edited, or embedded in markdown documentation.
ImageToMermaid solves this by converting any diagram image into Mermaid syntax—a text-based diagramming language that renders in GitHub, GitLab, Notion, and most modern documentation platforms.
The problem
Engineers frequently need to:
- Document existing system architectures found only as images
- Recreate diagrams from legacy documentation
- Convert whiteboard sessions into persistent documentation
- Maintain diagrams as code alongside their repositories
Manually transcribing complex diagrams is tedious and error-prone.
What we built
- Computer Vision
- LLM Processing
- Mermaid.js
- Web Application
The application uses a multi-stage pipeline:
- Image analysis - Detect shapes, arrows, and text regions
- OCR extraction - Pull text content from each element
- Structure inference - Determine relationships and flow direction
- Code generation - Produce clean, properly formatted Mermaid syntax
The output is immediately usable—paste it into any markdown file and the diagram renders automatically.
- Diagram types
- Flowcharts
- Diagrams supported
- Sequence
- Processing time
- <30s
- Output ready
- Copy/paste
More Projects

Benefits comparison and compliance reporting tool
A specialized platform for benefits advisors to compare multiple plan documents and generate government compliance reports automatically.
Accessibility-focused mobile application
A cross-platform mobile app built for ClicknPush Accessibilities, serving users on both iOS and Android platforms.
Interested in working together?
Let's talk about your project.