What Keyboard Shortcut Centers Selected Text

Master the core keyboard shortcuts to center selected text across Word, Google Docs, and more. This guide covers Windows/macOS variants, app differences, and practical tips from Shortcuts Lib.

Shortcuts Lib
Shortcuts Lib Team
·5 min read
Quick AnswerDefinition

Centering selected text typically uses Ctrl+E on Windows or Cmd+E on macOS in Word and most editors. Google Docs commonly uses Ctrl+Shift+E on Windows or Cmd+Shift+E on macOS. Since shortcuts vary by program, this guide outlines the standard mappings, app-specific differences, and customization options.

What this guide covers and why centering text matters

Centering text is a fundamental formatting operation that improves readability and emphasis. In many editors, the phrase you might search for is "what keyboard shortcut centers selected text" — a reminder that different programs map this action to different keystrokes. According to Shortcuts Lib, the most widely supported mapping is Ctrl+E on Windows and Cmd+E on macOS, but Google Docs uses Ctrl+Shift+E / Cmd+Shift+E, and some editors reserve the same keys for other commands. This page explains the standard mappings, app-specific quirks, and practical steps to verify or customize shortcuts across Word, Google Docs, LibreOffice Writer, and Pages. We’ll also show simple automation snippets you can adapt to your workflow. In short, knowing where and how a center shortcut works saves time and keeps documents consistently formatted.

JavaScript
// Center the current selection in a contenteditable region function centerSelection() { document.execCommand('justifyCenter'); }
Bash
# Simulate pressing the center shortcut in a Linux X11 environment (example) xdotool key ctrl+e

Notes for quick testing: Try a contenteditable div in a browser, select some text, and run centerSelection() to observe the result. This section lays the groundwork for understanding cross-app consistency and sets expectations for Word, Docs, and other editors.

contextReferenceOnlyOnlyThisSectionKeyTakeaways

Steps

Estimated time: 15-25 minutes

  1. 1

    Identify target app and text

    Open the document in Word, Google Docs, or another editor and select the paragraph or text you want centered. Confirm you are in editing mode so shortcuts apply to the selection.

    Tip: If you’re switching apps, note which platform you’re on (Windows vs macOS) to pick the right shortcut.
  2. 2

    Choose the correct shortcut for the app

    Refer to the app’s mapping: Word/Writer use Ctrl+E or Cmd+E; Google Docs commonly uses Ctrl+Shift+E or Cmd+Shift+E. Ensure the focus is on the text you selected.

    Tip: Double-check: some apps reserve E for other actions; if in doubt, use the menu path under Format/Align.
  3. 3

    Apply the shortcut

    Press the shortcut once and observe the text center alignment. If nothing happens, ensure the text isn’t in a table or list that restricts alignment.

    Tip: Try applying to a single paragraph first to verify behavior.
  4. 4

    Verify the result

    Look for the centered alignment, then review surrounding text to maintain consistent formatting throughout the document.

    Tip: If not centered, try the menu path to center or reselect the text and try again.
  5. 5

    Handle conflicts

    If a global shortcut overrides your action, check OS-level shortcuts or editor-specific mappings and rebind if necessary.

    Tip: Create a small shortcut map for common formatting actions to avoid future conflicts.
  6. 6

    Document customization

    If you frequently center text, consider recording a macro or script to automate the action across apps in your workflow.

    Tip: Document your mappings so teammates can reuse them.
Pro Tip: Test shortcuts in a safe document to confirm behavior before applying to important files.
Warning: Be aware of app-specific quirks: some editors shift focus or override shortcuts in lists and tables.
Note: Cross-platform consistency helps maintain a uniform look across devices and editors.
Warning: If using assistive tech, announce alignment changes with a visible, accessible status update.

Prerequisites

Required

Keyboard Shortcuts

ActionShortcut
Center align selected textWord, Outlook, most editorsCtrl+E
Center align in Google DocsDocs editor in browserCtrl++E
Center align in LibreOffice WriterWriter appCtrl+E

Questions & Answers

What is the standard keyboard shortcut to center text in Word on Windows?

In Word on Windows, the standard shortcut to center text is Ctrl+E. This centers the selected paragraph or text instantly. If not working, ensure you’re in editing mode and not within a special container that overrides formatting.

In Word for Windows, press Ctrl+E to center the selected text. If it doesn’t work, check the editing mode and any table or list constraints.

How do I center text in Google Docs on a Mac?

In Google Docs on macOS, the typical shortcut is Cmd+Shift+E. If you use a different layout, you can access Center from the Format > Align > Center menu path. Shortcuts may vary if you customize keys.

On Mac, use Cmd+Shift+E in Docs to center the text. If it doesn’t work, try the menu path to center alignment.

Do shortcuts to center text vary across editors?

Yes. While many editors use Ctrl+E / Cmd+E, some apps like Google Docs use the Shift variant (Ctrl+Shift+E / Cmd+Shift+E). Always verify in the specific editor’s shortcuts reference.

Shortcuts differ by editor; check each app’s shortcut guide to be sure.

What should I do if my shortcut conflicts with a system shortcut?

Identify whether the conflict comes from the OS or the editor. Rebind the shortcut in the app or OS settings, or use an alternative path like the menu or a macro.

If it clashes with your system shortcut, rebind it in the app or OS, or use a different center command.

Can I customize shortcuts for centering text in different apps?

Yes. Most editors let you customize or override shortcuts. Create a consistent mapping across apps for faster, predictable formatting, and document the mappings for teammates.

You can customize shortcuts to be consistent across apps; keep a simple reference handy.

Main Points

  • Center text with Ctrl+E or Cmd+E in most editors.
  • Google Docs often uses Ctrl+Shift+E / Cmd+Shift+E.
  • Verify shortcuts per app; customize when needed.

Related Articles