Email Formatting||9 min read

How to Remove Horizontal Lines from Pasted Email Content

How to Remove Horizontal Lines from Pasted Email Content - Practical tips from the PasteClean team.

Hero image for How to Remove Horizontal Lines from Pasted Email Content

You’ve drafted the perfect email response, hit Ctrl+V to drop in a section of text you drafted elsewhere, and suddenly your professional formatting is cut in half by a stubborn, uninvited horizontal line. You try backspacing. You try selecting it and hitting delete. You try moving the text around it. But that thin grey divider refuses to die, often dragging unwanted spacing or font changes along with it.

This is one of the most persistent nuisances in modern email workflows, especially when you are aggregating content from web pages, AI tools, or previous email threads. It isn't just a visual annoyance; it signals to the recipient that your email is a "Frankenstein" creation stitched together from different sources. To maintain professional polish, you need to understand exactly what that line is and how to remove horizontal lines from pasted email content without nuking the rest of your formatting.

The Anatomy of the "Undead" Line

To fix the problem, you have to stop looking at the line as a drawing and start seeing it as code. When you copy text from a browser or a rich text editor, you aren't just copying letters; you are copying a hidden payload of HTML and CSS.

That horizontal line is usually one of three things:

  1. The <hr> Tag: This is a "Horizontal Rule." In HTML, it’s a semantic break in the page. It is a distinct object, not just a style applied to text.
  2. The CSS Border: This is a border-bottom or border-top property applied to a paragraph (<p>) or a container (<div>). This is the "sticky" kind that moves with your text no matter how many times you hit backspace.
  3. The Table Border: If you copied content from a formatted newsletter or an Excel sheet, that line might be the bottom border of a hidden table cell.

Outlook and Gmail handle these three elements differently. While a browser renders them cleanly, email clients—particularly Outlook—often interpret the CSS inaccurately, locking the formatting in place.

Why "Paste as Plain Text" Isn't the Solution

The standard advice you’ll find on generic tech blogs is to "Paste as Plain Text" (or Ctrl+Shift+V). While this technically works to remove horizontal lines, it is a scorched-earth strategy.

When you paste as plain text, you strip the line, but you also strip:

  • Hyperlinks
  • Bold and Italic emphasis
  • List structures (bullets and numbers)
  • Table layouts

If you are a professional communicating complex ideas, re-adding all those links and bolding key terms is a waste of billable hours. You need a pasted content fix that acts like a scalpel, removing the artifact (the line) while preserving the tissue (the useful formatting).

Removing Lines in Outlook Desktop (The Word Engine Problem)

Outlook Desktop is the most difficult client to troubleshoot because it uses Microsoft Word as its rendering engine, not a standard web browser engine. This means it interprets HTML borders as Word "Paragraph Borders."

If you paste text and a line appears that you can't delete with the Backspace key, follow this specific sequence:

  1. Select the Text: Highlight the paragraph immediately above and below the line. The line is likely attached to one of these paragraphs as a border property.
  2. Locate the Borders Menu: Go to the Format Text tab on the ribbon. Look for the "Paragraph" section. You will see a small square icon that looks like a windowpane (Borders).
  3. Select "No Border": Click the dropdown arrow next to the Borders icon and select No Border.

Pro Tip: If "No Border" doesn't work, the line is likely an HTML Horizontal Rule (<hr>) that Outlook has converted into a graphical object. Click directly on the line until you see selection handles (little boxes) appear on its ends, then press Delete. If you can't select it, it's a border. If you can select it, it's an object.

The "AutoFormat" Culprit

Sometimes, you create the lines yourself without realizing it. If you type three hyphens (---) or three underscores (___) and hit Enter in Outlook, the AutoFormat feature converts them into a permanent border line. To undo this immediately, press Ctrl+Z. To stop it forever, go to File > Options > Mail > Editor Options > Proofing > AutoCorrect Options > AutoFormat As You Type and uncheck "Border lines."

Fixing the Issue in Gmail (Web Client)

Gmail is more forgiving because it operates in a browser, but it still has quirks. Gmail tends to strip out <style> tags but keeps inline styles. This means if you copy a <div> with a bottom border, Gmail preserves that border.

The "Remove Formatting" Button Risks

Gmail has a "Tx" button (Remove Formatting) in the toolbar. Like "Paste as Plain Text," this is destructive. It will revert your font to the default Sans Serif and strip your links.

Instead, try this workaround for persistent lines in Gmail:

  1. Place your cursor at the very end of the line of text above the horizontal line.
  2. Press Delete (forward delete) to pull the text below the line up to the current line.
  3. Hit Enter.

Often, this forces Gmail to create a new paragraph container without the inherited border properties of the previous one.

The AI Copy-Paste Problem

If you use tools like ChatGPT, Claude, or Jasper to draft email copy, you are likely the victim of Markdown conversion.

Large Language Models (LLMs) output text in Markdown. In Markdown, a horizontal rule is denoted by three dashes (---). When the AI's interface converts that Markdown into the rich text you see on screen, it turns those dashes into an <hr> tag.

When you copy that output and paste it into your email, you are bringing that <hr> tag with you.

The Fix: Don't copy the "divider" sections of AI output. Select only the text paragraphs. If the AI gives you a subject line followed by a divider and then the body, copy the subject line and body separately. It takes two seconds longer but saves you two minutes of formatting wrestling.

Using a Clean Text Tool (The Efficiency Approach)

For those of us processing high volumes of email, manual fiddling with border settings in Outlook is not scalable. This is where a dedicated clean text tool becomes part of the stack.

Tools like PasteClean are designed to parse the HTML on your clipboard before it hits your email client. The logic is simple but essential:

  1. Intercept: The tool accepts the rich text paste.
  2. Filter: It runs the content against an "allowlist" of tags (like <a>, <b>, <i>, <ul>).
  3. Purge: It specifically targets and removes block-level styling elements like <hr>, border-bottom, and background colors.
  4. Output: It provides a clean HTML package that renders safely in Outlook and Gmail.

This automated approach ensures that you never accidentally send an email with a "broken" layout, regardless of the source formatting.

The Dark Mode Disaster

Here is a counterintuitive reason to remove horizontal lines that has nothing to do with aesthetics in your view: Dark Mode compatibility.

Many horizontal lines are actually coded as "1px solid black" borders.

  • On your screen (Light Mode): It looks like a neat divider.
  • On the recipient's screen (Dark Mode): The email background turns dark grey. The text turns white. But often, explicitly defined borders remain "black."

Black lines on a dark grey background are invisible. Even worse, if the line was coded as a light grey to be subtle, it might show up as a neon bright line in Dark Mode depending on how the email client inverts colors.

Insight: The safest design choice for email is to rely on whitespace (margin and padding) rather than physical lines to separate sections. Whitespace adapts perfectly to both Light and Dark modes; hard-coded lines do not.

Advanced Troubleshooting: The "Table" Trap

Sometimes you will encounter a line that defies all the above logic. You’ve clicked "No Border," you’ve tried backspacing, and it remains.

You are likely dealing with a nested HTML table. This is common when copying from older enterprise software or formatted newsletter templates. The "line" is actually the bottom border of a table cell (<td>).

How to verify:

  • In Outlook: Click inside the text area. If the "Table Design" and "Layout" tabs suddenly appear in your ribbon at the top, you are inside a table.
  • The Fix: Go to the Layout tab > Convert to Text. This will break the table structure and leave you with standard paragraphs, usually dissolving the stubborn borders in the process.

A Concrete Before/After Example

To visualize why specific removal is better than plain text, look at this scenario:

Original Content (from a web page):

Q4 Report Analysis Based on the recent data... <hr> (Horizontal Line) [Link to full report]

Bad Fix (Paste as Plain Text):

Q4 Report Analysis Based on the recent data... Link to full report (Result: Bold is gone, Italics are gone, Link is dead text.)

Proper Fix (Targeted Removal/Clean Text Tool):

Q4 Report Analysis Based on the recent data...

[Link to full report] (Result: Formatting preserved, line removed, professional spacing added.)

Prevention Checklist

If you want to stop fixing lines and start preventing them, adjust your copy-paste workflow:

  • Paste Matching Style: In Outlook, right-click and choose the clipboard icon with the letter 'A' ("Keep Text Only") if you don't need links. If you need links, use the "Merge Formatting" option (the clipboard with the arrow).
  • Sanitize First: Paste your content into a browser-based editor or a tool like PasteClean first, then copy it from there into your email. This acts as a decontamination chamber for bad HTML.
  • Avoid "Select All": When copying from a web page, manually highlight only the text you need. Ctrl+A (Select All) almost always grabs the container borders and footer dividers.

Conclusion

Email formatting bugs like persistent horizontal lines are minor annoyances that cause major perception problems. They distract from your message and make your communication look sloppy. By understanding that these lines are code—usually CSS borders or HTML tags—you can surgically remove them using the "Borders" menu in Outlook or a specialized cleaning tool, rather than destroying your hard work with "Paste as Plain Text." Keep your formatting, lose the junk, and hit send with confidence.

Clean your AI text instantly

Paste text from ChatGPT, Claude, or any AI tool and get clean, email-ready formatting in one click.

Try PasteClean Free