How it works
This overline text generator adds a combining mark after every letter you type, which draws a bar over it. The 6 bars are characters, not formatting, so the line pastes. Some apps strip or block these characters, and screen readers may read them badly.
Read the full guide
One bar on top, five more below
The large card shows your line under Overline, U+0305. Double overline, Macron, Double macron, Tramlines and Dashed overline sit below. Spaces get no mark, so the bar breaks between words.
What a bar over text means
Type only what belongs under the bar. Over repeating digits it marks the repeat, so 0.3̅ is one third. Over x it is a sample mean, x̄, and over a logic term it is NOT. Over a Roman numeral it multiplies by 1,000, so I̅V̅ is 4,000. A macron marks a long vowel, as in Māori.
Tips
- For a bar on its own, copy ‾, U+203E Overline, which joins in a row. The macron ¯, U+00AF, does not join.
- A macron result is a letter plus U+0304. For ā Unicode also has one ready-made character, U+0101, and treats the two as the same text.
- In a box with a character limit, every bar counts: over the top is 12 characters as typed and 22 under an overline.
Questions and answers
How do I type a line over a letter?
Type the letter here and copy it from Overline or Macron. What you get is the letter followed by a combining mark, U+0305 or U+0304, which the reader's device draws on top of it.
What is the x bar symbol?
x̄, read x bar, is the sample mean in statistics. Unicode has no single character for it, so it is always an x followed by a combining mark. Type x and copy it from Macron or Overline.
Why does my bar have gaps?
The reader's font draws it. Unicode intends U+0305 to connect on the left and right, but Wikipedia records that a run such as 1̅2̅3̅ may come out broken or unbroken, depending on the font. U+0304, the macron, carries no such note.
How do I overline text in CSS or LaTeX?
In CSS, text-decoration: overline draws a line over each line of text. In LaTeX maths, \overline{x+y} puts a bar over the expression. Neither changes the characters, and the Unicode standard itself prefers styled text to these marks for overlining.