Paragraph Separator

Press Copy for \u2029, the escape of the paragraph separator, or take its HTML, its bytes or a pattern.

\u2029JSON, JavaScript, Java, C#, Go, PythonReady to copy

51 codes and signs. Tap one to copy it.

The escape, language by language 8

Its codes 8

Make the bare character 5

Find it 6

Remove or replace it 7

Line separator and the other breaks 9

Paragraph marks that print 8

All codes and signs

The escape, language by language

  • \u2029 JSON, JavaScript, Java, C#, Go, Python
  • \u{2029} JavaScript, Rust, Ruby, PHP in double quotes
  • \N{PARAGRAPH SEPARATOR} Python, by name
  • "\P" YAML, in double quotes
  • \x{2029} Perl, PCRE2 patterns
  • \2029 CSS; a space may follow
  • 
 HTML and XML
  • 
 HTML and XML, hexadecimal

Its codes

  • U+2029 Code point
  • 8233 Decimal
  • E2 80 A9 UTF-8 bytes
  • 20 29 UTF-16, big end first
  • 29 20 UTF-16, little end first
  • %E2%80%A9 In a URL
  • Zp Unicode category; it is the only member
  • BK Line breaking class: mandatory break

Make the bare character

  • copy("\u2029") A browser’s console: puts it on the clipboard
  • String.fromCharCode(8233) JavaScript
  • chr(0x2029) Python
  • =UNICHAR(8233) A spreadsheet cell
  • printf '\xE2\x80\xA9' A shell whose printf reads \x

Find it

  • /\u2029/ JavaScript
  • [\u2028\u2029] Line and paragraph separator, in a pattern
  • \p{Zp} By category, in a Unicode pattern
  • text.includes("\u2029") JavaScript: true or false
  • "\u2029" in text Python: True or False
  • perl -CSD -ne 'print if /\x{2029}/' file.txt A terminal: the lines that hold one

Remove or replace it

  • text.replace(/\u2029/g, "\n\n") JavaScript: a blank line for each
  • s.split(/[\u2028\u2029]/) JavaScript: split at both separators
  • text.replace("\u2029", "\n\n") Python: a blank line for each
  • text.split(/\u2029/) JavaScript: one piece a paragraph
  • text.splitlines() Python: splits at it and at ten other breaks
  • json.replace(/\u2029/g, "\\u2029") JavaScript: escape it in JSON
  • perl -CSD -pe 's/\x{2029}/\n\n/g' file.txt A terminal: a blank line for each

Line separator and the other breaks

  • \u2028 Line separator, U+2028: 
, bytes E2 80 A8
  • \n Line feed, U+000A: 
, byte 0A
  • \r\n CR LF, the two together: bytes 0D 0A
  • \r Carriage return, U+000D: byte 0D
  • \u0085 Next line, U+0085: bytes C2 85
  • \u000B Line tabulation, U+000B: byte 0B
  • \f Form feed, U+000C: , byte 0C
  • 
 Line separator, in HTML
  • E2 80 A8 Line separator, UTF-8 bytes

Paragraph marks that print

  • Georgian paragraph separator U+10FB, Georgian paragraph separator. Three dots, which print. Unicode 1.1.
  • Ethiopic paragraph separator U+1368, Ethiopic paragraph separator. Unicode 3.0.
  • Syriac end of paragraph U+0700, Syriac end of paragraph. Unicode 3.0.
  • Urdu paragraph separator U+203B, Reference mark. By Unicode’s list, a second name of the reference mark. Unicode 1.1.
  • Paragraphos U+2E0F, Paragraphos. Unicode 4.1.
  • Pilcrow U+00B6, Pilcrow sign. Second name: paragraph sign. It prints and breaks no line. Unicode 1.1.
  • Reversed pilcrow U+204B, Reversed pilcrow sign. Unicode 3.0.
  • Curved stem paragraph sign U+2761, Curved stem paragraph sign ornament. Unicode 1.1.

How this list was compiled: Names, code points, categories and second names are from UnicodeData.txt and NamesList.txt, the version a sign was added in from DerivedAge.txt, line breaking classes from LineBreak.txt, all version 18.0.0 (unicode.org). What the two separators are for and the list of newline functions: the Unicode Standard 18.0, section 5.8 (unicode.org) and section 23.2 (unicode.org). JavaScript: the line terminators and string literals of ECMA-262 (tc39.es), and the year of the change from the list of finished proposals (github.com, JSON superset, 2019). JSON: RFC 8259 (rfc-editor.org). Escapes: Python (docs.python.org), Java (docs.oracle.com), C# (learn.microsoft.com), Go (go.dev), Rust (doc.rust-lang.org), Ruby (docs.ruby-lang.org), PHP (php.net), YAML 1.2.2 (yaml.org), CSS (w3.org), Perl and PCRE2 (perldoc.perl.org, pcre.org), HTML (html.spec.whatwg.org). splitlines: docs.python.org; copy() in a console: developer.chrome.com; UNICHAR: support.microsoft.com. All read on November 30, 2026. The JavaScript, Python, Perl and shell lines were run that day on a text with the character in it; the lines, the groups and the order are this page’s own. License: own work (facts from the Unicode Character Database, Unicode License v3, and from the named specifications, restated in this site’s own words; unicode.org)

How it works

The paragraph separator is U+2029, the invisible character that stands between two paragraphs. In code it is \u2029, in HTML 
, in UTF-8 the bytes E2 80 A9. It is the only character in the category Zp.

Read the full guide

The bare character

The tiles copy codes, not the invisible character itself. To have it on the clipboard, paste copy("\u2029") into a browser’s console. Make the bare character has JavaScript, Python, a spreadsheet and a terminal too.

Find it and take it out

One pattern finds it: /\u2029/ in JavaScript, \p{Zp} where a pattern knows categories. To keep the paragraphs apart, put a blank line, two \n, in its place. Without code, paste the text into remove line breaks: it counts each kind and turns this one into a blank line.

Questions and answers

What is the difference between U+2028 and U+2029?

U+2028 is the line separator: a new line in the same paragraph, like <br> in HTML. U+2029 starts a new paragraph. Unicode made the pair so that the two meanings need not be guessed, as with a line feed.

Is the paragraph separator allowed in JSON and JavaScript?

In a JSON string, yes, bare or escaped. In a JavaScript string since ES2019. Elsewhere in JavaScript source it ends the line, so it closes a // comment and breaks a regular expression literal.

Which characters break a line?

Unicode lists LF, CR, CR LF, next line, line tabulation, form feed and the two separators. JavaScript ends a line at four characters: LF, CR, U+2028 and U+2029. Java source ends one at LF, CR or CR LF.

Is ¶ a paragraph separator?

No. ¶ is the pilcrow, U+00B6, a mark that prints: see section symbols. Signs named paragraph separator that print are the Georgian ჻ and the Ethiopic ፨, and Unicode’s list calls ※ the Urdu one.

Can HTML write every line break as a number?

No. &#8233; and &#8232; give the separators and &#10; a line feed. &#133;, the number of next line, gives … instead, and &#11; and &#13; are parse errors.