Input Markdown

Processed Output

Markdown Line Break Examples

Normalize mode merges wrapped lines into single paragraphs. Example:

Wrapped lines to paragraphs

Input (wrapped lines):

Input

Normalized output:

Output

Use Normalize Paragraphs mode and Sample above.

What Is the Markdown Line Break Tool?

Markdown treats line breaks differently than HTML. A single newline often doesn't create a break in HTML; you need two spaces at line end or a blank line. This tool adds hard breaks (two spaces + newline) or normalizes paragraphs. The CommonMark hard line breaks spec defines the rules precisely. Learn more at Markdown paragraphs by Gruber.

Processing runs entirely in your browser. Nothing is sent to a server. Two modes: Add Hard Breaks (insert line breaks after each line) or Normalize Paragraphs (merge wrapped lines into single paragraphs). The CommonMark standard covers how renderers handle these cases. For formatting, use the Markdown Formatter.

How to Use This Tool

1

Paste or Upload Markdown

Copy your Markdown and paste it into the left editor. You can also click Upload to load a .md or .markdown file. The Sample button loads example data.

2

Choose Mode

Select Add Hard Breaks to insert line breaks after each line, or Normalize Paragraphs to merge wrapped lines. The right panel updates automatically.

3

Copy or Download

Use Copy or Download. For formatting or validation, use the Markdown Formatter or Markdown Validator.

When Line Break Processing Helps

When Markdown from a CMS or export has single newlines that don't render as breaks, adding hard breaks fixes it. The GitHub Flavored Markdown spec and Markdown Guide cover line break rules. When text has inconsistent wrapping (e.g. from email or copy-paste), normalizing paragraphs creates clean paragraphs. Poetry or addresses often need hard breaks.

Frequently Asked Questions

Why doesn't pressing Enter create a new line in Markdown?

In Markdown, a single newline is treated as a space — not a line break. Most renderers follow the CommonMark spec, which requires either two spaces at the end of a line (a hard break) or a blank line (a paragraph break) to actually create visible separation in the rendered output.

What's the difference between a soft break and a hard break?

A soft break is a single newline in source Markdown — it renders as a space in HTML. A hard break is two trailing spaces + newline — it renders as a <br> tag. This tool's "Add Hard Breaks" mode converts every single newline into a hard break so each source line becomes a visible line.

Can I use this to fix Markdown copied from Word or Google Docs?

Yes — that's one of the most common uses. When you copy text from Word or Google Docs, lines often wrap at the column width, creating dozens of short lines that merge into one wall of text when rendered. Use Normalize Paragraphs mode to merge those wrapped lines back into proper paragraphs.

Is this compatible with GitHub Flavored Markdown?

Yes. The hard break format (two trailing spaces) is supported by GitHub Flavored Markdown and all CommonMark-compliant renderers. The normalize mode produces standard paragraph breaks that work everywhere.

When to use Hard Breaks?

When each line should render as a separate line (e.g. addresses, poetry, or content that was intended to have single-line breaks). Adds two spaces + newline.

Related Tools

CommonMark. CommonMark line breaks. Markdown Guide. GFM. GitHub. W3C HTML.