Skip to the content

Contact usFree tools · No signup · Files stay on your device

Text Tools

Markdown Previewer: the complete guide to writing and previewing Markdown

Markdown Previewer: the complete guide to writing and previewing Markdown

Markdown is a way of writing formatted text with plain characters: # for a heading, ** for bold, - for a list item. The free Markdown Previewer shows the formatted result next to your text as you type, so you can see at once whether your table lines up or your list is nested properly. It is made for developers writing README files, bloggers drafting posts, students taking notes and anyone who is tired of guessing what a Markdown file will look like.

This guide walks through every part of the page: the editor and toolbar, the preview, the statistics, the three ways of getting your work out, and the small things that surprise people the first time.

What Markdown Previewer does

You type or paste Markdown on one side and the page converts it to formatted text on the other. It understands standard Markdown plus the GitHub-style extras: tables with column alignment, task lists, strikethrough and fenced code blocks.

It can:

  • Preview your document live, with a short delay after you stop typing.
  • Insert Markdown for you with a twelve-button toolbar.
  • Open a .md, .markdown or .txt file from your computer.
  • Count words, characters and lines, and estimate reading time.
  • Copy the converted HTML, or download the document as .md or as a finished .html page.

It does not save your work, check your spelling beyond what the browser's own spell-check does, or publish anything. It is a writing and preview tool, not a hosting service. If you need a long document turned into a PDF or a Word file, convert it elsewhere after you have finished checking it here.

How to use Markdown Previewer, step by step

  1. Open Markdown Previewer. The editor starts with a sample document, which is a handy tour of the syntax. Press Clear to start empty, or Sample to bring the tour back.
  2. Type or paste your text into the box titled "Markdown". To work on a file you already have, press Open .md and choose it.
  3. Use the formatting toolbar above the box to add syntax at the cursor, or just type the Markdown yourself.
  4. Read the result in the panel titled "Preview". While it is catching up with a fast typist, a small "Updating…" label shows.
  5. Check the four numbers under the panels: Words, Characters, Lines and Reading time.
  6. Press Copy HTML, or download your work with the .md or .html buttons above the preview.

On a narrow screen such as a phone, the two panels do not sit side by side. A switch labelled "Editor view" lets you flip between Write and Preview.

Every option explained

The formatting toolbar

The toolbar has twelve buttons. Each one edits the text for you, and in most browsers the edit goes through the normal undo, so Ctrl+Z (or Cmd+Z) takes it back.

Button What it inserts
B **bold text** around the selection
I _italic text_ around the selection
S ~~struck text~~ around the selection
H ## at the start of each selected line
Link [link text](https://example.com) around the selection
code backticks around the selection
``` a fenced block that starts with js, so change the word if your code is not JavaScript
• List - at the start of each selected line
1. List numbers each selected line as 1. 2. 3.
☐ Task - [ ] at the start of each selected line
❝ Quote > at the start of each selected line
Table a starter table with three columns and two body rows

If nothing is selected, the wrapping buttons insert a placeholder word such as "bold text" and select it, so you can type over it straight away. The line buttons work on every line you have selected, which is the fastest way to turn a pasted list of names into a bulleted or numbered list.

Two behaviours to know. The H button always adds ## , a level-two heading, and pressing it again does not toggle it off: it adds another prefix. Change the number of hashes by hand for level 1 or level 3. The Table button leaves a blank line above and below the table so that it does not merge with the paragraph next to it.

The Preview panel

The preview shows what your Markdown becomes. The sample document covers most of what you will use: headings, bold, italic, strikethrough, inline code, links, a quote, bulleted and numbered lists, a task list, a code block, a table, a horizontal rule and Unicode text.

Single line breaks inside a paragraph do not create a new line, which is how Markdown works everywhere. For a real line break, end the line with two spaces or a backslash, or leave a blank line for a new paragraph.

Copy HTML, .md and .html

  • Copy HTML copies only the converted body. Paste it into a content management system's HTML mode or an email template.
  • .md downloads exactly what is in the editor as Markdown document.md.
  • .html downloads a complete page named Markdown document.html, with a title taken from your first heading (or "Document" if there is none), a readable width, and light styling for headings, code, quotes and tables that follows the visitor's light or dark preference.

Copy and download are disabled while there is nothing to export.

The statistics row

Words and reading time are counted from the rendered preview, so Markdown symbols do not inflate the number. Characters and Lines are counted from your raw text. Reading time assumes 230 words a minute and never shows less than 1 minute for a document with any words.

What it accepts and its limits

  • Syntax: Markdown with GitHub Flavored extras. Tables, task lists, strikethrough, fenced code blocks and automatic links all work.
  • Files: Open .md accepts .md, .markdown and .txt. The page sets no size limit of its own; your device's memory is the limit.
  • Large documents: the preview waits 120 milliseconds after you stop typing. Above 200,000 characters it waits 400 milliseconds so typing stays smooth.
  • HTML inside Markdown: allowed, but cleaned before it is shown or copied.
  • Not included: no spell-checker of its own, no version history, no saving between visits.

Privacy

The previewer runs in your browser. Your text is not sent to our server and is not stored. The conversion code (a Markdown parser and a cleaning library) is downloaded when the page opens, and it runs on your device. If that download fails, the preview area shows "Couldn't load the Markdown renderer" with a hint to check your connection and reload.

Because nothing is saved, remember the one rule: download the .md file before you close the tab.

A worked example

A shop owner in Chattogram drafts a price notice. She pastes this:

## Eid offer

Order by **Friday** and pay on delivery. Call 01XXXXXXXXX.

| Item | Price (Taka) |
| :--- | ---: |
| Panjabi | 1,850 |
| Shawl | 2,400 |

- [x] Prices confirmed
- [ ] Photos added

The preview shows a heading, a paragraph with bold text, a two-column table with the prices aligned to the right, and a task list with one ticked box. The statistics read about 24 words. She presses Copy HTML and pastes the result into her website's editor, then downloads the .md file as a backup.

Tips to work faster

  • Select a block of lines first, then press • List, 1. List or ❝ Quote to convert them all in one click.
  • Use the Table button for the shape, then type over the placeholder cells.
  • Keep a document open in the Write view and glance at the Preview only when you finish a section, on small screens.
  • Write long Markdown files in your own editor, then paste or open them here for a final visual check.
  • Compare two versions of the same document with the Text Diff Checker before you publish.
  • Need dummy content to test a layout? Generate it with the Lorem Ipsum Generator, which can output Markdown directly.

Common problems and how to fix them

My table shows as plain text with pipes

A table needs a header row and a separator row of dashes directly under it, such as | --- | --- |. A blank line between them, or a missing separator, turns the whole thing into a paragraph. The cheat sheet in Markdown cheat sheet: tables, task lists and code blocks shows the exact shapes.

My list is not a list

Leave a space after the dash or number, so - item, not -item. A task item needs a space inside the brackets too: - [ ] item. Without those spaces, the line stays ordinary text.

My line breaks disappeared

That is normal Markdown behaviour. Add two spaces at the end of the line, a backslash, or a blank line between the paragraphs.

My script or button did not show

The output is cleaned with DOMPurify, so scripts and event handlers are removed on purpose. Harmless formatting tags are kept.

"Couldn't load the Markdown renderer"

The parser is fetched when the page loads. Check your connection and reload the page. Your typed text is not kept across a reload.

Quick checklist

  • Write in the editor, check the Preview, then export.
  • Use blank lines between blocks and a space after list markers.
  • Download the .md file before closing the tab.
  • Use Copy HTML for pasting into a CMS and the .html download for a ready-made page.
  • Remember that the H button always adds a level-two heading.

Frequently asked questions

Does the Markdown Previewer save my document?
No. Nothing is saved automatically and nothing is uploaded, so closing or reloading the tab loses your text. Press the .md download button to keep a copy.
What is the difference between Copy HTML and the .html download?
Copy HTML puts only the converted body (headings, paragraphs, tables and so on) on your clipboard, ready to paste into a CMS or an email template. The .html download is a complete web page with a head, a title taken from your first heading and basic styling, which you can open straight in a browser.
Why does the word count differ from my editor's?
The tool counts the words of the rendered preview, not the raw text. Symbols such as #, ** and the URL part of a link are not counted, so the number reflects what a reader would see. Reading time is that count divided by 230 words a minute, with a minimum of 1 minute.
Why do some links open in a new tab?
Every link in the preview is set to open in a new tab, so clicking one never takes you away from your unsaved document.
Can I paste HTML or a script into the editor?
You can type HTML, and harmless tags such as b or a are kept. Before anything is shown or copied the result is cleaned with DOMPurify, which removes scripts, event handlers and other dangerous markup.
Found this useful? Share it

Tools in this guide

Main tool

Markdown Previewer

Write Markdown and see it rendered instantly, with GitHub-style tables, task lists and code blocks.

Open tool

Word Counter

Paste or type any text to get live word and character counts, reading and speaking time, a readability score and the keywords you use most.

Open tool

Text Diff Checker

Paste or open two versions of a text and see exactly what changed: added lines in green, removed lines in red.

Open tool

Lorem Ipsum Generator

Create placeholder text in seconds: classic Lorem Ipsum or seven other styles, by paragraph, sentence, exact word or character count.

Open tool

Back to all guides & blog