Soft Return Character Code: What It Is and How to Find It

Which character a soft return (Shift+Enter line break) really is: VT, LF, U+2028 or nothing. How to detect it, convert it and avoid unintended changes.

A soft return breaks a line without starting a new paragraph. The text continues as one paragraph, but the next words start on a new line. No single character code means "soft return" in every program. The stored character depends on the application and the format, and in some cases there is no character at all. This guide explains which codes you are likely to see, how to identify the one in your text, and how to convert it without changing meaningful content.

What a soft return does to your text

A hard return ends a paragraph. A soft return only moves the following text to a new line. This matters because paragraph-level formatting, such as spacing before and after, indentation, list numbering and styles, applies to the whole paragraph. A soft return keeps lines inside one paragraph, so that formatting stays shared. Typical uses are addresses, poem lines and multi-line table cells.

In plain-text processing, the effect depends on which character carries the break. Some tools treat that character as a line ending, and others ignore it or show it as an unknown symbol. Before you search for a soft return, replace it or delete it, identify the actual code.

Soft return vs. soft wrap vs. soft hyphen

Three different things are often confused under similar names:

  • Soft return (manual line break): a real character inserted on purpose, usually with Shift+Enter. It stays in the file.
  • Soft wrap (word wrap): the editor visually wraps a long line to fit the window. No character is inserted, and the file contains one long line.
  • Soft hyphen: U+00AD SOFT HYPHEN, an invisible hyphenation hint that shows a hyphen only if the word breaks at the end of a line. It is not a line break. Some searches use the phrase "soft line break" loosely and mean this character.

Suppose a line breaks on screen but your search finds no break character. In that case you are probably looking at soft wrap, and there is nothing in the text to remove.

Character codes behind soft returns

The table lists the characters most often involved, with their Unicode code points, common escape notations and UTF-8 bytes. The hard-return characters are included for comparison.

Character | Code point | Escape | UTF-8 bytes | Where it typically appears
Vertical tab (VT) | U+000B | \v or \x0b | 0B | Microsoft Word manual line break (Shift+Enter), as exposed through Word's object model and Find/Replace; Chr(11) in VBA
Line feed (LF) | U+000A | \n | 0A | Line ending on Unix, Linux and macOS; line break inside an Excel cell (Alt+Enter), equal to CHAR(10)
Carriage return (CR) | U+000D | \r | 0D | Word paragraph mark (Chr(13)); part of the Windows CRLF line ending
Line separator | U+2028 | \u2028 | E2 80 A8 | The Unicode character defined for a line break inside a paragraph
Paragraph separator | U+2029 | \u2029 | E2 80 A9 | The Unicode character defined for a paragraph break
Next line (NEL) | U+0085 | \x85 | C2 85 | Legacy mainframe and EBCDIC-derived text
Soft hyphen | U+00AD | \xad | C2 AD | A hyphenation hint, not a line break

Markup formats work differently. In a .docx file, Word stores a manual line break as a break element (<w:br/>) in the document XML, not as a raw control character. HTML uses the <br> element. In Markdown, CommonMark calls a plain newline inside a paragraph a "soft line break" and usually renders it as a space. A visible line break needs two trailing spaces or a backslash before the newline.

How to recognize a soft return, step by step

  • 1. Find out where the text came from: a Word document, a spreadsheet cell, a web page, a PDF or a code editor. The source tells you which codes to expect.
  • 2. In Microsoft Word, turn on formatting marks with the ¶ button. A manual line break is shown as a bent arrow (↵), and a paragraph mark is shown as ¶.
  • 3. To count them in Word, open Find and Replace and search for ^l (caret plus lowercase L). Search for ^p to find paragraph marks.
  • 4. In Excel, open Find and Replace, click in the Find box and press Ctrl+J to enter a line feed. The search then matches in-cell line breaks.
  • 5. For plain-text files, inspect the bytes with a hex or escape viewer (examples below). This is the most reliable check, because it shows the real code instead of the editor's display.
  • 6. Compare the bytes you find with the table above to identify the character.

Inspecting the actual bytes

The commands below are illustrative examples for a Unix-like shell and for Python. They have not been run against your file. Adjust the file name, and check the results against your own data.

# Show control characters as escapes (VT appears as \v, CR as \r, LF as \n)
od -c sample.txt

# Hex dump: look for 0b, 0d 0a, e2 80 a8, c2 85, c2 ad
xxd sample.txt

# Line numbers of lines containing a vertical tab
grep -n $'\v' sample.txt

# Lines containing U+2028 LINE SEPARATOR (GNU grep, UTF-8 locale)
grep -nP '\x{2028}' sample.txt
# Python: repr() makes invisible characters explicit
text = open('sample.txt', encoding='utf-8').read()
print(repr(text[:200]))

# Count each candidate character
for name, ch in [('VT', '\x0b'), ('LF', '\n'), ('CR', '\r'),
                 ('LINE SEPARATOR', '\u2028'), ('PARAGRAPH SEPARATOR', '\u2029'),
                 ('NEL', '\x85'), ('SOFT HYPHEN', '\u00ad')]:
    print(name, text.count(ch))

Example of what to look for (illustrative, not captured output): the repr() of a pasted address could appear as 'Main Street\x0bSuite 4' or 'Main Street\u2028Suite 4'. In both cases a single soft-return character joins the two lines.

Converting soft returns without unintended changes

Decide on the result you want first: a real line ending, a space, or no change. Then replace only the specific character you identified.

  • In Word, replace ^l with ^p to turn manual line breaks into paragraph breaks. Replace ^l with a space to join the lines.
  • In plain text, replace only the character you identified. For example, replace U+000B or U+2028 with \n, and leave existing CR and LF characters alone.
  • Keep the file's existing line-ending convention. Inserting \n into a file that uses CRLF creates mixed line endings.
  • Be careful with general-purpose line-splitting functions. Python's str.splitlines(), for example, also splits on \v, \f, \x1c to \x1e, \x85, \u2028 and \u2029. It can break text at points you did not intend.
  • Do not treat a soft hyphen as a line break. Removing U+00AD only removes hyphenation hints, while replacing it with a newline breaks words apart.
# Illustrative Python: convert VT and U+2028 to LF, leave everything else unchanged
cleaned = text.replace('\x0b', '\n').replace('\u2028', '\n')

# Illustrative GNU sed: replace vertical tabs with a space
sed 's/\x0b/ /g' sample.txt > sample-cleaned.txt

Verifying the result

  • Run the same byte inspection or count again. The target character's count should be zero, and the replacement character's count should go up by the same amount.
  • Confirm that CR and LF counts changed only by the number of replacements you made.
  • Compare the original and cleaned files with a diff tool. Only the expected lines should differ.
  • Open the result in the application that will use it, and check that line and paragraph formatting look as intended.

Known gaps

No subject-specific measurements or product documentation were provided for this guide. The character codes above come from published Unicode and ASCII definitions and from widely documented Word and Excel behavior. When you copy, paste or export (to .txt, PDF, HTML or other formats), applications may convert soft returns to other characters. That conversion is not covered here, and it can vary by application and version. Inspect the bytes of your actual output instead of assuming a particular code survived the conversion.