Blog

How to Add a Line Break in Markdown

The complete guide to markdown line breaks. Learn how to create new lines and linebreaks in markdown so everything renders correctly after publishing.

Benjamin McBrayer // Published: May 11, 20264 min read

Also in

Line breaks help you control where text starts on a new line in Markdown. They are useful for writers, bloggers, students, and anyone creating online content, because they make text easier to read and organize. This guide will show you how line breaks work in Markdown and how to use them correctly. It covers every method so you can format your text and add a line break in markdown exactly the way you want.

How to Add a Line Break in Markdown

Markdown is a lightweight markup language used across platforms like GitHub, Reddit, Notion, and countless documentation tools. One of the most common questions people new to markdown face is how to create a line break in markdown, because simply pressing the Enter key once doesn't always do what you would expect it to do.

Why Pressing Enter for Line Breaks Alone Doesn't Work

If you've been trying to add a line break in markdown by hitting Enter, you've probably already discovered this: a single return key often gets ignored. Markdown parsers typically treat a single newline as a space. This has the effect of merging two lines into one continuous paragraph.

How to Make a Line Break in Markdown With Trailing Spaces

The most traditional way to add a line break in markdown is to place two or more spaces at the end of a line before pressing Enter. This produces a <br> element in the rendered HTML.

This is the first line.··
This is the second line.

(The dots represent spaces.)

The result is a soft line break where both lines appear in the same paragraph block but on separate lines. This is often the quickest solution, though the spaces are invisible and easy to miss during editing.

How to Do a Line Break in Markdown With a Backslash

Many modern parsers also support a trailing backslash as a line break character:

This is the first line.\
This is the second line.

This approach solves the visibility problem of trailing spaces and is supported by CommonMark, GitHub Flavored Markdown, and several other popular specifications. If you prefer explicit, readable syntax, the backslash is a great option.

How to Add a New Line in Markdown With HTML

Since Markdown supports inline HTML, you can always use a raw <br> tag to start a new line in markdown:

This is the first line.<br>
This is the second line.

This is the most explicit method and works in virtually every parser. It is especially useful inside tables or other contexts where trailing spaces and backslashes may not be recognized.

How to Create a Line Break in Markdown Using a Blank Line

If you need more visual separation than a simple line break, leaving a blank line between two blocks of text creates a full paragraph break:

This is the first paragraph.

This is the second paragraph.

While this is technically a paragraph break rather than a line break, it is the answer many people are really looking for when they want to add line breaks in markdown. The gap between paragraphs is larger, making it ideal for separating distinct ideas.

How to Break Line in Markdown Tables

Tables deserve a special mention because they are one of the trickiest places to handle line breaks. Since the pipe (|) character defines columns and each row must sit on a single line, trailing spaces and backslashes generally will not help. The <br> tag is the most reliable approach here:

| Feature | Description |
|---------|-------------|
| Speed   | Very fast<br>Even under load |

Keep this in mind whenever you need to break a line inside structured elements.

Quick Reference

Here is a summary of every method to do a line break in markdown:

  • Two trailing spaces + Enter works everywhere and is the classic approach, but the spaces are invisible.
  • Backslash + Enter is visible and clean, supported by CommonMark-based parsers.
  • The <br> tag works everywhere, including inside tables.
  • A blank line creates a full paragraph break rather than a simple new line in markdown.

Final Tips

When deciding how to add line breaks in markdown, consider your platform and audience. If your team collaborates on GitHub, the backslash method keeps diffs clean. If you are writing documentation rendered by a less common parser, the HTML <br> tag is the safest bet. And if trailing spaces are your preference, configure your editor to show whitespace so you never lose them accidentally.

Now that you know how to line break in markdown using every available method, formatting your text should feel a lot less unpredictable. Pick the method that fits your workflow, stay consistent, and your documents will render exactly the way you intend.