To align text to the center in most major word processors like Microsoft Word and LibreOffice, the keyboard shortcut is Ctrl + E (Windows) or Cmd + E (Mac). For Google Docs, the shortcut is Ctrl + Shift + E (Windows/ChromeOS) or Cmd + Shift + E (Mac). These shortcuts instantly shift the alignment of the current paragraph or selected text block to the center of the page or container, eliminating the need to navigate through the toolbar menus.

What You'll Need

  • A computer (Windows, macOS, or ChromeOS).
  • A physical or virtual keyboard.
  • An active document open in a word processor or presentation software (such as Microsoft Word, Google Docs, Microsoft PowerPoint, or LibreOffice).
  • Text already typed into the document that requires centering.

Step-by-Step

Depending on the software you are using, the specific key combination varies slightly. Follow the instructions for your specific platform below. Note that menu labels and exact shortcut behavior may differ slightly based on your software version, device, or regional settings.

Centering Text in Microsoft Word

  1. Open your Microsoft Word document and locate the text you wish to center.
  2. Place your cursor anywhere within the paragraph you want to align. You do not need to highlight the entire paragraph for the shortcut to work; as long as the cursor is active in that block of text, the command will apply to the whole paragraph.
  3. If you want to center multiple paragraphs at once, click and drag your mouse to highlight all the relevant text.
  4. Press and hold the Ctrl key (Windows) or Cmd key (Mac).
  5. While holding the modifier key, press the E key once.
  6. Release both keys. Your text should now be perfectly centered between the left and right margins.

Centering Text in Google Docs

  1. Open your document in a web browser.
  2. Click inside the paragraph you want to center or highlight a specific range of text.
  3. Press and hold the Ctrl key (Windows/ChromeOS) or Cmd key (Mac).
  4. While holding the first key, press and hold the Shift key.
  5. While holding both, press the E key.
  6. Release all keys. The text will shift to the center of the page.

Centering Text in Microsoft PowerPoint

  1. Select the text box or shape containing the text you want to align.
  2. Click inside the text box and highlight the specific lines of text you wish to center.
  3. Press Ctrl + E (Windows) or Cmd + E (Mac).
  4. If the text does not appear centered, check the text box margins in the Shape Format menu to ensure there is no internal padding pushing the text to one side.

Alternative Method: Using Ribbon Sequences (Windows Word)

If your keyboard does not support certain shortcuts or you prefer a sequential approach, you can use the Alt-key access keys in Microsoft Word:

  1. Press the Alt key to activate the ribbon shortcuts.
  2. Press H to navigate to the Home tab.
  3. Press AC (in sequence) to trigger the Align Center command.

Common Mistakes

Even a simple shortcut can lead to formatting errors if certain conditions aren't met. Here are the most frequent mistakes users make when attempting to center text:

  • Confusing Ctrl+E with Ctrl+L or Ctrl+R: It is common to accidentally hit Ctrl + L (Align Left) or Ctrl + R (Align Right). If your text moves to the opposite side of the page, check which key you pressed.
  • Forgetting the Shift Key in Google Docs: Many users try Ctrl + E in Google Docs, which is the shortcut for inserting a table or other functions in different browser contexts. In Google Docs, the Shift key is mandatory for alignment shortcuts.
  • Centering Empty Lines: If you press the shortcut on a blank line and then start typing, the text will be centered. However, if you later change the alignment back to left, you may find "ghost" centered paragraphs in your document that create uneven spacing.
  • Ignoring Indentation Settings: A common mistake is trying to center text that has a "Left Indent" or "First Line Indent" applied. If a paragraph has a 1-inch left indent, the "center" will be calculated based on the remaining space, making the text look off-center relative to the actual page margins.
  • Attempting to Center Objects with Text Shortcuts: Keyboard shortcuts for text alignment do not work on images, shapes, or charts. To center an image, you must use the image alignment tools in the layout or format menu.

Tips

To get the most out of your document formatting, use these advanced tips alongside your keyboard shortcuts:

  • Use the Format Painter: If you have one perfectly centered header and want others to match, highlight the centered text, click the Format Painter (brush icon) in the Home tab, and then click on the other text you want to center.
  • Check Your Ruler: Always keep the ruler visible (View > Ruler). This allows you to see if there are any manual tab stops or indent markers that are interfering with the centering shortcut.
  • Combine with Bold and Font Size: Centering is most effective for titles and headings. Use Ctrl + B to bold and Ctrl + ] (in Word) to increase font size immediately after centering to create a professional-looking header.
  • Centering in Tables: When working inside a table, Ctrl + E centers the text horizontally within the cell. To center it vertically, you will typically need to use the Table Layout menu, as there is no universal keyboard shortcut for vertical alignment.

Troubleshooting

If the keyboard shortcut is not working as expected, try these steps in order:

  1. Check for Active Selection: Ensure your cursor is actually blinking inside the text or that the text is highlighted. If the window is not "in focus," the shortcut will not trigger.
  2. Verify Software Compatibility: Confirm you are using the correct shortcut for your specific app. As noted, Google Docs requires the Shift key, while Word does not.
  3. Disable Conflicting Software: Some third-party apps (like screen recorders, gaming overlays, or clipboard managers) use global hotkeys. If Ctrl + E triggers another app instead of centering your text, close that application or change its hotkey settings.
  4. Reset Paragraph Formatting: If the text refuses to move to the center, it may have "hard" formatting applied. In Word, select the text and press Ctrl + Space to clear character formatting and Ctrl + Q to clear paragraph formatting, then try Ctrl + E again.
  5. Check Language/Keyboard Layout: Ensure your keyboard is set to the correct language. Some international keyboard layouts remap modifier keys, which can occasionally interfere with standard shortcuts.

Frequently Asked Questions

Does Ctrl + E work in every application?

No. While it is a standard for most word processors (Word, LibreOffice, OpenOffice), it does not work in basic text editors like Notepad (which has no alignment options) or in coding environments like VS Code, where alignment is handled by CSS or indentation.

How do I center an image using a keyboard shortcut?

Most applications do not have a direct keyboard shortcut to center images. You must select the image and use the alignment buttons in the "Picture Format" or "Layout" tab, or use the alignment menu in the right-click context menu.

Why does my centered text look slightly to the left or right?

This usually happens because of hidden characters or indentation. Check for trailing spaces at the end of the line or a manual indent marker on the ruler. If there is a tab character at the start of the line, the text will be pushed to the right even if it is "centered."

Can I create my own shortcut for centering?

In Microsoft Word, you can customize shortcuts. Go to File > Options > Customize Ribbon, then click the "Customize..." button next to Keyboard shortcuts at the bottom. Search for "AlignCenter" and assign your own key combination.

What is the difference between Center and Justify?

Center alignment places the text in the middle of the line, leaving uneven edges on both the left and right sides. Justify alignment stretches the text so that both the left and right edges are straight, adding extra space between words to fill the line.

How do I quickly undo a center alignment?

The fastest way to undo the action is to press Ctrl + Z (Windows) or Cmd + Z (Mac). Alternatively, you can press Ctrl + L (Windows) or Cmd + L (Mac) to immediately return the text to left alignment.