Tab character

Copy a real tab.

One click copies the tab character U+0009. Paste it anywhere the Tab key jumps to the next field instead of typing.

Check for tabs

Paste something to see how many tab characters it contains.

Horizontal Tab

U+0009 	 \t

Best for: indenting text in forms and chat apps, tab-separated data, pasting columns into a spreadsheet

A control character: it draws nothing itself and moves the text after it to the next tab stop. Its width depends on the app, usually 4 or 8 spaces. Looking for the Tab key symbol to show in instructions? That is ⭾ horizontal tab key.

Where a pasted tab works

  • Web forms and comment boxes: the Tab key leaves the field, but a pasted tab stays in the text. Some sites convert it to spaces or strip it when you save.
  • Spreadsheets: each tab starts a new column when you paste into Excel or Google Sheets.
  • Code and plain text files: it is the same character the Tab key types in a code editor.
  • Web pages: HTML collapses a tab to one space unless the text is inside <pre>. For visible spacing on a web page, use the em space on the invisible character page instead.

Frequently asked questions

Why does pressing Tab not type a tab? +

In browsers and most forms the Tab key moves the cursor to the next field instead of typing a character. Copying a tab from this page and pasting it puts a real tab character into the text.

Is this a real tab or a picture of one? +

It is the real horizontal tab character, U+0009, the same character the Tab key types in a text editor. The arrow symbol ⭾ (U+2B7E) is only a picture of the Tab key; it does not create any spacing.

How do I type a tab inside a table cell in Word? +

Press Ctrl + Tab. In a Word table, Tab on its own moves to the next cell.

What happens when I paste a tab into Excel or Google Sheets? +

A tab separates columns, so text with tabs in it is split across cells when pasted. That is the quick way to paste a small table: put a tab between columns and a line break between rows.

How do I write a tab in code or HTML? +

Use \t in JavaScript, Python, Java, C and most other languages, and &#9; in HTML. Browsers collapse tabs to a single space in normal HTML text; they are only kept inside <pre> or with the CSS white-space: pre setting.

✓ Copied to clipboard