Mermaid ↔ Markdown Fence
Wrap Mermaid in a Markdown code fence, or extract a diagram from Markdown / AI chat paste.
All processing on this page runs locally in your browser unless noted otherwise.
How to use
- Paste bare Mermaid or a Markdown snippet.
- Use Wrap for README-ready fences, or Extract to get clean source.
- Copy the result or open it in the Editor to preview.
FAQ
What does Wrap do?
It puts your diagram inside a ```mermaid fenced code block for GitHub, Notion, and Markdown docs.
What does Extract do?
It pulls the first mermaid fence (or cleans AI paste) so you can edit bare source in the Editor.