Clean a README
Standardize the titles and lists of a file written by several contributors.
Normalize Markdown presentation to improve readability and get a clean version ready to copy or reuse in your documents.
Harmonize the syntax of a Markdown file without affecting its content: a space after each title #, standardized “-” bullets, no more than one empty line in a row and no unnecessary spaces at the end of lines. Formatting makes the source more regular, easier to reread, and produces cleaner diffs in a code repository. The processing is carried out in your browser.
The formatter reads the document line by line and applies four rules. It adds the missing space after heading markers: “#Title” becomes “# Title”, with repeated spaces after the marker reduced to one. It replaces “*” and “+” bullets with “-”, including in indented lists. Runs of blank lines are reduced to one. Unnecessary trailing spaces and tabs are removed.
Some syntax is deliberately protected. Everything inside code fences delimited by ``` or ~~~ stays unchanged, including a “#include” directive or a line starting with “*”. Horizontal rules (---, * * *, ___) remain intact. **Bold** text at the start of a line is not mistaken for a bullet, and the two trailing spaces that force a Markdown line break are preserved.
The formatter does not reorder content, renumber numbered lists or rewrite tables and links. The wording itself stays unchanged.
Enter or import the document in the “Markdown Content” field.
Start formatting: the rules for headings, bullets, empty lines and spaces are applied.
Compare with the source, then copy or export the formatted version.
Standardize the titles and lists of a file written by several contributors.
Remove trailing spaces and excess empty lines before saving documentation.
Straighten a Markdown copied from another application, with disparate bullets and spacing.
The title space is added, the bullets are standardized and the three empty lines become one.
Input
#Title
* first point
+ second point
Final textResult
# Title
- first point
- second point
Final textNothing changes: the comment is in a code block, --- is a separator and **Important** is not a bullet.
Input
```bash
#comment
```
---
**Important**: review thisResult
```bash
#comment
```
---
**Important**: review thisFour things: the space after the # of titles, the bullets “*” and “+” replaced by “-”, successive empty lines reduced to one and end-of-line spaces removed.
No. Everything between two delimiters ``` or ~~~ is preserved character by character, including empty lines.
Yes. Two or more spaces after text, which force a newline in Markdown, are reduced to exactly two spaces instead of being removed.
No. The numbers are left as written; only the unnumbered bullets are standardized.
Yes. Formatting can be carried out with other word processors, for example before converting Markdown to HTML.
Related tools
Tools similar or complementary to this one.
Generate Lorem Ipsum placeholder text for mockups, prototypes and layout tests.
Create brand, product, project or domain names from your keywords – not personal names.
Write Markdown and instantly preview the rendered HTML.