Write, edit and preview Markdown in a full editor with live syntax highlighting — then style it with 16 templates and export to HTML, PDF or DOCX.
0 Words·0 Characters·~0 min
📄
Drop your markdown file
.md, .markdown, or .txt
✓
↑↓ to move · Enter to run · Esc to close
Insert table
File loaded!HTML exported!PDF exported!DOCX exported!Select 'Save as PDF' in print dialogHTML copied!Reset!Markdown guide loadedMarkdown downloadedDraft restoredStart a new document? Your current text will be cleared.Markdown editorAdd headings to build an outlineNo matchesSavedSaving…LineColHeaderCellKeyboard shortcutsCopy Link with MarkdownCopy MarkdownNo matching commandsActionsFormatInsertViewTemplatesColor SchemesExportBoldItalicStrikethroughInline codeLinkHeading 1Heading 2Heading 3QuoteBulleted listNumbered listTask listDividerCode blockImageTableNewOpen FileLoad sampleLoad GuideDownload .mdClearFind & replaceEditorSplitPreviewZenOutlineSync scrollHTML DocumentPrint / Save as PDFWord DocumentPlease allow pop-ups to export as PDFCould not load the Word export componentExport failed
Markdown was created in 2004 by John Gruber and Aaron Swartz with a simple but revolutionary goal: to make writing for the web as natural as writing an email. Unlike HTML, which buries content in angle brackets and closing tags, Markdown was designed to be readable as plain text. Gruber described it as a text-to-HTML conversion tool for web writers, but its impact has reached far beyond simple web publishing.
Since its creation, Markdown has become the de facto standard for writing technical content. GitHub adopted it for README files and documentation, making it inseparable from the open-source ecosystem. Stack Overflow uses it for questions and answers. Reddit relied on a Markdown variant for years. Blogging platforms like Ghost and static site generators like Jekyll and Hugo use Markdown as their primary content format.
Documentation tools such as MkDocs, Docusaurus, and GitBook are built entirely around it.
The philosophy behind Markdown is that formatting should enhance writing, not interrupt it. A heading is simply a line starting with hash marks. Bold text is wrapped in double asterisks. Links follow an intuitive bracket-parenthesis pattern. This simplicity is what makes Markdown so powerful—it lets writers focus on content while the syntax stays out of the way.
Velvet MD embraces this philosophy by taking your clean, readable Markdown and transforming it into beautifully styled documents. Choose from 16 curated templates spanning editorial, academic, modern, and technical styles. Customize with 20 color schemes, 35+ font families, and fine-grained typography controls. Export as standalone HTML pages, print-ready PDFs, or editable Microsoft Word DOCX files. All processing happens 100% in your browser—your content never leaves your machine.
The History and Evolution of Markdown
Markdown was born from a collaboration between John Gruber and Aaron Swartz in 2004. Gruber, a technology writer and blogger, wanted a way to write for the web without wrestling with HTML tags. Swartz, the programming prodigy who co-created RSS and later co-founded Reddit, contributed to the original Perl implementation. Together they created a syntax that looked natural as plain text but could be reliably converted to HTML.
The original Markdown specification was intentionally minimal, covering headings, paragraphs, emphasis, links, images, lists, code, and blockquotes. This simplicity was both its greatest strength and its biggest challenge. As adoption grew, different implementations began interpreting ambiguous edge cases differently. A paragraph followed by a list, indented code blocks, and nested blockquotes all behaved inconsistently across parsers.
This fragmentation led John MacFarlane, a philosophy professor at UC Berkeley, to launch the CommonMark initiative in 2014. CommonMark created a rigorous specification with over 600 examples defining exactly how every edge case should be handled. Major platforms including GitHub, GitLab, Reddit, and Stack Overflow adopted CommonMark as their baseline, finally bringing consistency to the ecosystem.
GitHub Flavored Markdown (GFM) extended CommonMark with practical additions: tables using pipe syntax, task list checkboxes, strikethrough text, and automatic URL linking. These extensions proved so useful that most modern Markdown parsers support them by default. Other notable extensions include footnotes, definition lists, math expressions via LaTeX syntax, and Mermaid diagram rendering.
Today Markdown has transcended its web-writing origins. It powers knowledge management tools like Obsidian and Notion, scientific publishing through R Markdown and Jupyter notebooks, presentation tools like reveal.js and Marp, and even book publishing via tools like Pandoc that can convert Markdown to virtually any document format. The format that Gruber and Swartz created to simplify blogging has become a universal language for structured text.
How to Use
Write or paste your markdown in the editor pane on the left, or click 'Open File' to load a .md file.
Choose a template from the sidebar, then customize colors, typography, and layout to match your style.
Click Export to download your styled document as HTML, PDF, or Word DOCX format.
Methodology
Velvet MD uses marked.js to parse markdown into HTML following the CommonMark specification with GitHub Flavored Markdown (GFM) extensions, supporting tables, strikethrough, task lists, and autolinks. The parsing engine processes markdown in a single pass, converting syntax elements into semantic HTML5 elements. Code blocks are syntax-highlighted using highlight.js with automatic language detection across 190+ programming languages, applying theme-appropriate color palettes.
Templates are implemented as pure CSS rulesets applied dynamically to the preview pane through CSS custom properties. Each template defines a complete visual system including typography scales, color palettes, spacing rhythms, and decorative elements. The color scheme system overrides specific custom properties without replacing the entire template, enabling mix-and-match customization.
Typography controls manipulate CSS variables in real time, with changes reflected instantly in the live preview.
PDF export uses the browser's native print functionality, rendering the styled preview pane through a print-optimized stylesheet that handles page breaks, margins, and orphan/widow control. HTML export generates a self-contained document with all CSS embedded inline, ensuring the exported file renders identically in any browser without external dependencies.
DOCX export uses the html-docx-js library to construct a valid Open XML document that preserves heading hierarchy, paragraph formatting, and basic styling compatible with Microsoft Word and LibreOffice.
Each template is designed for a specific use case. Editorial and Sepia work best for long-form writing like blog posts and essays, with serif fonts and generous line spacing that reduce eye fatigue. Academic follows scholarly conventions with formal typography suitable for papers and reports. Magazine uses bold heading scales and tight layouts for visual impact. Terminal, Monokai, Dracula, and Tokyo Night provide dark backgrounds optimized for technical documentation and code-heavy content.
GitHub and Notion replicate familiar developer environments.
The typography controls directly affect readability. Line height between 1.6 and 1.8 is optimal for body text—anything below 1.4 feels cramped, while above 2.0 wastes vertical space. Content width of 600-700px produces the ideal 50-75 characters per line that research shows maximizes reading speed. Heading scale controls the size ratio between heading levels, where larger scales create stronger visual hierarchy but require more vertical space.
When exporting, choose HTML for web sharing where recipients need to view in a browser, PDF for print-ready documents with fixed layout, and DOCX when the recipient needs to edit the content further in Word. Each export format preserves your template styling and customizations as closely as the target format allows.
Practical Examples
A software team lead writes project documentation in markdown and uses Velvet MD with the GitHub template to preview how it will look on their repository. After reviewing, they switch to the Academic template and export as PDF to attach to a formal project proposal, getting two polished outputs from one source document.
A technical blogger drafts articles in their favorite text editor using markdown, then opens the file in Velvet MD to try different visual presentations. The Magazine template with the Sunset color scheme transforms their tutorial into a visually striking web page, which they export as a standalone HTML file to host on their blog.
A university student writes their thesis notes in markdown for easy version control with Git. When submitting a chapter draft to their advisor, they use Velvet MD with the Academic template to export a professional DOCX file that their advisor can annotate with Word's track changes feature.
Tips & Best Practices
Start with a template that matches your content type, then customize from there. It is faster to modify an existing template than to build styling from scratch using custom colors and typography. The Editorial template works as an excellent starting point for most documents.
Use heading levels consistently. Markdown supports six heading levels (# through ######), but most documents should only use three or four. Skipping heading levels (going from H1 directly to H3) creates accessibility issues and breaks the logical document outline.
For code-heavy documentation, choose a dark template like Terminal or Monokai. These templates pair dark backgrounds with light syntax-highlighted code blocks, reducing the visual contrast between prose and code sections. This creates a more cohesive reading experience for technical audiences.
When exporting to PDF, preview the document at the content width you intend to print. Wider content widths may cause text to be scaled down to fit the page. A content width of 700px or less typically maps well to standard A4 or Letter page sizes.
Use the Load Guide button to see a comprehensive markdown syntax reference rendered with your chosen template, helping you preview how different elements will look before writing your own content.
All calculations are performed locally in your browser. No data is sent to any server.
How to Use
Write or paste your markdown in the editor pane on the left, or click 'Open File' to load a .md file.
Choose a template from the sidebar, then customize colors, typography, and layout to match your style.
Click Export to download your styled document as HTML, PDF, or Word DOCX format.
Was this tool helpful?
Want to tell us more?
0/500
Want us to follow up?
Thanks for your feedback!
Frequently Asked Questions
What is Velvet MD and what can I do with it?
Velvet MD is a markdown beautifier that transforms plain markdown text into professionally styled documents. You can choose from 16 templates (like Editorial, Modern, Dark Mode, Academic), customize typography with 35+ fonts, adjust colors, and export your styled document as HTML, PDF, or Word DOCX. It's perfect for creating polished documentation, reports, or articles from markdown.
How do I customize the document appearance?
Use the sidebar tabs to access different customization options. The Templates tab offers 16 pre-designed styles. The Colors tab lets you apply quick color schemes or set custom colors for background, text, headings, and accents. The Typography tab controls fonts (35+ options for headings, body, and code), font sizes, line height, and paragraph spacing. The Layout tab adjusts content width, padding, and special options like drop caps and decorative dividers.
What export formats are available?
Velvet MD supports three export formats: HTML creates a standalone web page with all styles embedded that works in any browser; PDF generates a print-ready document perfect for printing or sharing; DOCX creates a Microsoft Word compatible file that preserves your formatting and can be further edited. All exports include your chosen template styling and customizations.
Can I use my own markdown files?
Yes! You can open markdown files in two ways: click the 'Open File' button in the header to browse for .md, .markdown, or .txt files, or simply drag and drop a file anywhere on the page. The file contents will load into the editor and render immediately in the preview pane. All processing happens locally in your browser—your files are never uploaded anywhere.
Does Velvet MD support code syntax highlighting?
Yes, Velvet MD includes automatic syntax highlighting for code blocks. Use standard markdown fenced code blocks with a language identifier (like ```javascript or ```python) and the code will be highlighted with appropriate colors. The highlighting adapts to your chosen template—light templates use light-background code themes, while dark templates use dark-background themes for optimal readability.
What is the difference between CommonMark and GitHub Flavored Markdown?
CommonMark is the standardized specification for core Markdown syntax, defining how elements like headings, links, emphasis, and code blocks should be parsed and rendered. GitHub Flavored Markdown (GFM) is an extension built on top of CommonMark that adds features commonly used in software development, including tables, task lists with checkboxes, strikethrough text, and automatic URL linking. This tool supports both CommonMark and GFM syntax, so you can use tables and task lists alongside standard Markdown formatting.
Can I write and edit Markdown directly in the tool?
Yes. Velvet MD includes a full editor with live syntax highlighting, a formatting toolbar, and keyboard shortcuts. As you type, the preview updates instantly while the outline and word count keep pace. You can also open a .md file or paste text, then format it with one click from the toolbar or the command palette.
What keyboard shortcuts does the editor support?
Press Ctrl/Cmd+B for bold, Ctrl/Cmd+I for italic, and Ctrl/Cmd+K to open the command palette and run any action by name. Ctrl/Cmd+F opens find and replace, and Ctrl/Cmd+S downloads your document as a .md file. The editor also continues lists automatically when you press Enter and indents with Tab.
Will I lose my work if I close or refresh the page?
No. Your document is saved automatically in your browser as you type and is restored the next time you open the tool. Everything stays on your device and nothing is uploaded to a server. To keep a permanent copy, use Download .md or export to HTML, PDF, or DOCX.
How do find and replace work?
Press Ctrl/Cmd+F to open the find bar. Type a search term to jump between matches with the next and previous buttons, and the bar shows how many matches were found. Add replacement text to swap a single match or replace every occurrence at once. Turn on Match case for case-sensitive searches.
What is the command palette?
The command palette is a fast, keyboard-driven menu that puts every action one search away. Press Ctrl/Cmd+K, then type to find and run a command: apply a template or color scheme, switch view modes, insert a table, change typography, or export. It is the quickest way to use Velvet MD without hunting through panels.
My Favorites
Drag to reorder
No favorites yet
Tap the ☆ on any tool page to bookmark it for quick access.