Preview Mermaid diagrams in JetBrains IDEs
See Mermaid diagrams next to your text in IntelliJ IDEA, PyCharm, WebStorm and Android Studio, with zoom and export, fully offline.
Mermaid Preview Plus is a JetBrains IDE plugin by BrightDesk Apps. Questions: support@brightdeskapps.com.
1. Open a diagram
Create a file ending in .mmd or .mermaid. The editor splits: your text on the left, the drawing on the right, updating as you type.
flowchart LR
idea[Idea] --> review{Review}
review -->|ok| ship[Ship]
review -->|changes| idea2. Diagrams inside Markdown
In a Markdown file, put the cursor inside a ```mermaid block and open the Mermaid tool window. It shows the block under the cursor.
3. Zoom and move
Use the zoom, fit and 100% buttons, or hold Ctrl (Cmd on Mac) and scroll. Drag to move around a large diagram.
4. Export (Pro)
Export SVG or PNG, or copy the diagram as an image to paste into a document or chat.
Before you buy
Which IDEs does it work in?
Any JetBrains IDE from version 2025.2: IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, GoLand, Rider, CLion, RubyMine and Android Studio builds based on the same platform.
Does it need the internet?
No. The Mermaid library (version 12.3.0) is inside the plugin, so diagrams draw offline and your text never leaves your computer.
What is free and what is Pro?
Free: live preview for .mmd and .mermaid files and for mermaid blocks in Markdown, zoom, fit, pan, light and dark themes, and clear error messages. Pro adds SVG and PNG export (1x, 2x or 4x), copy as image, and a choice of Mermaid themes. Pro will be sold through JetBrains Marketplace with a free trial; until then the free features are fully usable.
My diagram shows an error. What now?
The panel names the line Mermaid could not read and keeps your last good drawing on screen while you fix it. Newer diagram types such as architecture-beta need the current Mermaid syntax, which this plugin ships.
Is it made by JetBrains or the Mermaid team?
No. It is an independent plugin by BrightDesk Apps. Mermaid is an open-source project under the MIT licence.
Last updated 24 November 2026.