Identify the vertical tab character

How to recognize the vertical tab (U+000B), tell it apart from line feeds and form feeds, find it in text, and decide whether to replace it before sharing.

The vertical tab is a control character, code point U+000B, that usually travels unseen inside copied, exported or converted text. It can look like a line break in one program and disappear, turn into a box or break a parser in another. This review covers how to identify it, how it differs from similar characters, what inspecting or replacing it actually changes, and when a plain line break or space is the safer choice.

Quick identification

Property | Value
Code point | U+000B
Decimal / hexadecimal / octal | 11 / 0x0B / 013
Unicode name field | <control> (control characters have no regular character name)
Name aliases | LINE TABULATION (formal alias), VERTICAL TABULATION, VT
String escapes | \v in C, Python and JavaScript; also \x0B or \u000B
Caret notation | ^K (Ctrl+K)
Visible stand-in | U+240B SYMBOL FOR VERTICAL TABULATION (␋), a separate printable character

Because the name field is empty, some tools that look up character names will report nothing or raise an error for U+000B. Python's unicodedata.name(), for example, raises ValueError for it unless a default is supplied. Searching by code point or escape sequence is more reliable than searching by name.

How it differs from similar characters

Character | Code point | Common escape | Typical role
Horizontal tab | U+0009 | \t | Advances to the next tab stop on the same line
Line feed | U+000A | \n | Standard line break on Unix-like systems and the web
Vertical tab | U+000B | \v | Legacy control; used by some applications as an in-paragraph line break
Form feed | U+000C | \f | Page break in legacy printing and some source files
Carriage return | U+000D | \r | Paired with line feed in Windows line endings
Next line | U+0085 | none standard | Line break inherited from older mainframe encodings
Line separator | U+2028 | \u2028 | Unicode's unambiguous line break within a paragraph

The word "vertical" refers to moving the print position down to a preset line, not to vertical writing, rotated text, mirrored glyphs or a font style. The character changes nothing about letter shapes; it is a single invisible code point placed between other characters.

Clues that a vertical tab is in your text

  • A line break shows up in the original application but vanishes, becomes a space, or appears as a box or question mark after pasting elsewhere.
  • The text came from Microsoft Word with manual line breaks (Shift+Enter); Word's object model represents a manual line break as character 11.
  • An XML parser reports an invalid character at a position where nothing is visible.
  • A search for a phrase fails even though the words look correctly spaced.
  • A JSON export contains the sequence \u000b.

Useful search terms when looking for help or a tool: "U+000B", "0x0B", "vertical tab", "line tabulation", "^K" and "control character". A general code point inspector or hex viewer will reveal it; a text editor's option to show invisible or control characters may also work, but whether a particular editor displays U+000B was not verified for this review.

Finding it with standard commands

The following commands use widely documented utilities and language features. They show where the character sits without altering the file, except for the final line in each example, which writes a replacement.

# bash or zsh: $'\v' inserts a literal vertical tab
grep -c $'\v' input.txt          # number of lines containing one
od -c input.txt | less            # shown as \v
cat -A input.txt                  # shown as ^K (GNU coreutils)
tr '\v' '\n' < input.txt > output.txt
# Python
text = open("input.txt", encoding="utf-8").read()
positions = [i for i, ch in enumerate(text) if ch == "\v"]
print(len(positions), positions[:10])
print(repr(text[:200]))  # vertical tabs appear as \x0b

clean = text.replace("\v", "\n")
// JavaScript
const count = (text.match(/\v/g) || []).length;
const clean = text.replace(/\v/g, "\n");

One caution about regular expressions: in JavaScript and Python, \v matches only U+000B, but in PCRE-based tools (including grep -P) and in Java, \v is a class matching any vertical whitespace, such as line feeds and carriage returns. To target the vertical tab alone in those engines, use \x0B.

What inspection and replacement actually change

  • Inspecting with a hex viewer, od, repr() or a code point tool is read-only; it changes how the character is shown to you, not what is stored.
  • Substituting the visible symbol ␋ changes the stored text: the control character is gone and a printable symbol takes its place, which other software will treat as ordinary text.
  • Replacing it with a line feed preserves the intended line break in most destinations but erases the distinction some applications draw between a manual line break and a new paragraph.
  • Replacing it with a space keeps words separated on one line; removing it outright can join words together.
  • None of these operations involve fonts or styling; the change is always at the level of stored characters or of the inspection view.

Readability and usability after copying or sharing

How U+000B renders depends on the destination, and no destination-specific tests were available for this review. Documented format rules are more dependable than any single rendering:

  • XML 1.0 does not allow U+000B, either as a literal character or as a numeric character reference, so documents containing it will fail strict parsing.
  • JSON requires control characters inside strings to be escaped, so a conforming serializer writes it as \u000b; the escape is valid but may surprise people reading the data.
  • The HTML standard does not count U+000B as whitespace and treats control characters in input as parse errors; how a given browser then displays it was not verified here.
  • Definitions of "whitespace" disagree: Python's str.isspace() and str.split() treat it as whitespace and JavaScript's \s matches it, while HTML's whitespace set excludes it. Search, trimming and tokenizing can therefore behave differently across systems.
  • No documentation or test results were available on how screen readers handle U+000B. It may be skipped, announced or treated as a pause depending on the software, so it should not be relied on to convey structure.

A plain-text equivalent is needed whenever the text is going into XML, web pages, CSV files, databases, search indexes, accessible documents or any destination whose handling you have not checked. In those cases, convert each vertical tab to a line feed where it marked a line break, or to a space where it separated words.

Recommendation

For sharing, publishing and data exchange, identify every U+000B and replace it with a standard line feed or a space according to its role. The main benefit is predictable behavior across parsers, browsers, search and assistive technology. The decisive tradeoff is that the replacement is a stored change: if the text returns to an application that uses the vertical tab as a manual line break, those breaks may come back as paragraph breaks. Keep the original character when the text stays inside such an application, or when byte-exact preservation matters, as with records, test fixtures or forensic copies; in those cases inspect and document the character rather than altering it.

Gaps in the available evidence

  • No tests of specific editors, browsers, messaging apps or word processors were available, so their display and paste behavior is not stated.
  • No documentation or test data on screen reader handling of U+000B was available.
  • No specific online inspection tools were verified, so none are named; the commands above rely on standard utilities and language features.