Center Alignment Keyboard Shortcut: Quick Guide
In this article
The keyboard shortcut for center alignment is Ctrl+E on Windows and Cmd+E on Mac in most word processors and text editors. In Google Docs, Microsoft Word, LibreOffice Writer, and many email clients, pressing that combination instantly centers the current paragraph or selected text. If you are working in a plain-text editor or a code editor, the shortcut may not exist because those tools do not support paragraph alignment at all.
What You'll Need
- A word processor or rich-text editor that supports paragraph alignment (Microsoft Word, Google Docs, LibreOffice Writer, Apple Pages, or a similar app).
- A document open with a cursor placed in the paragraph you want to center, or text selected.
- Knowledge of whether you are on Windows/Linux (Ctrl) or Mac (Cmd).
Step-by-Step
- Open your document in the word processor you normally use. The shortcut works in the desktop app and, for Google Docs, in the browser version as well.
- Place your cursor anywhere inside the paragraph you want to center. You do not need to select the whole paragraph; the alignment applies to the entire paragraph the cursor sits in.
- If you want to center multiple paragraphs, click and drag to select all of them, or hold Shift and click at the end of the last one. Alignment is applied per paragraph, so every paragraph in the selection will be centered.
- Press Ctrl+E on Windows or Linux, or Cmd+E on Mac. The text should jump to the center of the page or text area immediately.
- Verify the result by looking at the alignment button in the toolbar. In Word and Google Docs, the center-align button will appear highlighted or pressed once the paragraph is centered.
- To undo, press Ctrl+Z (Cmd+Z on Mac) or press the same shortcut again. In most editors, Ctrl+E toggles between center and left alignment, so a second press returns the paragraph to left-aligned.
- For headings or titles, select the heading line and use the same shortcut. If your document uses styles, centering the paragraph does not change the style itself, only the alignment of that instance.
Common Mistakes
- Using the wrong modifier key. On Mac, Ctrl+E does not center text in most apps; you need Cmd+E. Conversely, on Windows, Cmd does not exist, so Ctrl+E is the correct combination.
- Expecting it to work in plain-text editors. Notepad, TextEdit in plain-text mode, and code editors like VS Code do not support paragraph alignment, so the shortcut does nothing or triggers a different command.
- Confusing center alignment with centering the page. Ctrl+E centers text horizontally within the text area; it does not change margins or page layout.
- Pressing it inside a table cell. In Word and Google Docs, the shortcut centers the text within the cell, not the table itself. To center the table, you need the table properties or the table alignment options.
- Assuming it works the same in every app. Some apps, such as certain email clients or note-taking tools, map Ctrl+E to a different action (for example, search or archive). Check the app's own shortcut list if the result is unexpected.
Tips
- Use Ctrl+E (Cmd+E) as a toggle: pressing it again usually returns the paragraph to left alignment, which is faster than hunting for the toolbar button.
- If you center a lot of text, consider creating a paragraph style with center alignment so you can apply it consistently with a single click or shortcut.
- In Google Docs, the shortcut works in the browser and in the mobile app only if you have a physical keyboard connected; on a touchscreen, use the alignment button in the toolbar instead.
- Remember that center alignment is best for titles, short headings, and pull quotes. Long paragraphs are harder to read when centered.
- If the shortcut does not respond, click once inside the document first. Some apps ignore keyboard shortcuts when the focus is on a sidebar or menu.
Troubleshooting
If Ctrl+E or Cmd+E does not center your text, work through these checks in order.
- Click inside the document body to make sure the editor has focus. Shortcuts often fail when a toolbar, sidebar, or dialog box is active.
- Confirm the app supports alignment. Plain-text editors and code editors generally do not. If you are in one, switch to a word processor or use the app's own formatting tools if any exist.
- Check for a conflicting shortcut. Some apps let you remap keys. Open the app's keyboard shortcut settings and search for "center" to see what is assigned. Labels and locations vary by app and version.
- Try the toolbar button. If the shortcut is broken, click the center-align icon in the formatting toolbar. This confirms whether the issue is the shortcut or the document itself.
- Restart the app. Close and reopen the program, then try again. This clears temporary glitches that can block keyboard input.
- Update the app. Install the latest version from the official source (Microsoft Store, Mac App Store, Google Docs in the browser, or the vendor's website). Outdated versions can have shortcut bugs.
- Test in a new document. If the shortcut works there but not in your current file, the document may be protected or in a mode that restricts formatting. Check for read-only mode or restricted editing.
Frequently Asked Questions
What is the keyboard shortcut for center alignment on Windows?
Ctrl+E in most word processors, including Microsoft Word, Google Docs, and LibreOffice Writer.
What is the center alignment shortcut on Mac?
Cmd+E in most Mac word processors and in Google Docs when used in a browser.
Does Ctrl+E work in Google Docs?
Yes, in the browser version and in the desktop app. On mobile, you need a physical keyboard for the shortcut to work; otherwise use the toolbar alignment button.
Why does Ctrl+E do something else in my app?
Some apps assign Ctrl+E to a different command, such as search or archive. Check the app's shortcut list or settings to see what is mapped.
Can I center text in Notepad or a code editor?
No. Those editors do not support paragraph alignment. Use a word processor or rich-text editor instead.
Does centering text with the shortcut change the font or style?
No. It only changes the horizontal alignment of the paragraph. Font, size, and style remain the same.