What is the keyboard shortcut for bold
Learn the standard bold shortcut (Ctrl+B / Cmd+B), how it varies across apps, and best practices for accessible, efficient text formatting. A thorough guide from Shortcuts Lib.

The standard bold shortcut is Ctrl+B on Windows and Cmd+B on macOS. It toggles bold formatting in most editors, word processors, and many IDEs. Some applications may use a different shortcut or rely on a toolbar button. If your app uses Markdown or rich text, the same combo often applies, but some apps reserve the keys for other actions like exporting or toggling emphasis.
Quick overview and scope
The bold keyboard shortcut is a foundational tool for fast text formatting. On Windows, press Ctrl+B; on macOS, press Cmd+B. This toggle works in most rich-text editors, word processors, and many IDEs. The exact effect depends on the active mode (rich text vs. Markdown). The question "what is the keyboard shortcut for bold" is central to this guide by design, and it helps you accelerate editing tasks. According to Shortcuts Lib, mastering Ctrl+B and Cmd+B is a foundational skill for rapid text formatting.
**bold text** // Markdown bold syntax (visual result in Markdown viewers)# Display note: not all terminals will honor editor shortcuts, but this shows the concept
echo 'Press Ctrl+B (Windows) or Cmd+B (Mac) to toggle bold in supported editors'Platform variability: where the shortcut works and where it doesn't
Bold shortcuts are broadly supported, but some apps and environments remap or disable them. In common editors (Word, Google Docs, most IDEs), Ctrl/Cmd+B toggles bold. In Markdown editors, the keyboard shortcut often controls the formatting state rather than inserting Markdown syntax directly. The key difference is whether you are editing in a live rich-text view or a Markdown source pane. See the examples below for typical scenarios and common exceptions.
Ctrl+B -> toggles bold in a rich-text pane
Cmd+B -> toggles bold on macOSfunction wrapBoldMarkdown(text) { return `**${text}**`; }
console.log(wrapBoldMarkdown('bold'));<strong>bold</strong>Practical workflows across editors and apps
In daily workflows, you often toggle bold to emphasize words or phrases without altering the surrounding structure. In word processors and web editors, the shortcut highlights the selected text. In Markdown workflows, bold is typically represented by surrounding text with double asterisks or underscores, but many editors allow a toggle to insert the Markdown syntax automatically. Shortcuts Lib analysis shows cross-app consistency for the core shortcut, with occasional variations in specialized tools.
**Bold** in Markdown textdef bold_md(text):
return f"**{text}**" # create Markdown bold syntax programmaticallyprintf "\033[1mBold\033[0m\n" # ANSI bold for terminal output (where supported)Variations and tips for reliable bold formatting
Some editors expose bold via a toolbar button rather than a keyboard shortcut, or require focus in a specific pane. If the shortcut doesn’t work, check the editor’s preferences for a conflicting binding or accessibility mode. In HTML contexts, bold can be visualized with the <strong> tag or CSS font-weight. For accessibility, avoid using bold alone to convey emphasis; pair with semantic structure.
<strong>bold</strong>{
"keys": ["ctrl+B"],
"command": "toggleBold",
"when": "editorTextFocus"
}Steps
Estimated time: 15-20 minutes
- 1
Prepare the text
Place the cursor or select the text you want to emphasize in bold.
Tip: Use Shift+Arrow keys to select efficiently. - 2
Apply the bold shortcut
Press the OS-specific shortcut to apply bold formatting to the selection.
Tip: If bold is already active, this will remove bold. - 3
Verify the result
Check the editor's preview or render to confirm bold styling.
Tip: In Markdown, verify that bold appears as expected with **text**. - 4
Handle exceptions
If nothing happens, ensure the focus is in the right pane and that a modal isn't intercepting keys.
Tip: Some apps may map bold to a toolbar action or disable it in code views.
Prerequisites
Required
- A computer with a standard keyboard (Windows or macOS)Required
- A text editor or word processor that supports bold formattingRequired
- Basic keyboard navigation and text selectionRequired
Optional
- Optional: knowledge of Markdown or rich-text editing modesOptional
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Toggle bold (bold text)Common in most editors and word processors | Ctrl+B |
| Toggle bold in Markdown editorsApplies if the editor supports live formatting or Markdown preview | Ctrl+B |
| Bold selected text in code editors with live previewCheck editor extension docs for exact binding | Ctrl+B |
Questions & Answers
What is the keyboard shortcut for bold on Windows?
On Windows, bold is typically toggled with Ctrl+B in most editors and word processors.
Ctrl plus B toggles bold on Windows in most apps.
What is the keyboard shortcut for bold on macOS?
On macOS, bold is typically toggled with Cmd+B in most editors and word processors.
Cmd plus B toggles bold on Mac in most apps.
Do all apps honor the bold shortcut?
Most apps honor Ctrl/Cmd+B, but some map it to other actions or disable it in certain modes.
Most apps support bold, but some modes may differ.
Can I customize the bold shortcut?
Many editors let you customize shortcuts, but availability varies by app and extension.
You can customize shortcuts in many editors, depending on the app.
How does bold interact with Markdown?
In Markdown, bold is written with **text**. Keyboard shortcuts can toggle formatting in editors with live preview.
Markdown uses **bold**; editors may apply with Ctrl/Cmd+B.
Is bold accessible for all users?
Bold helps emphasis but should not replace semantic structure; ensure accessible styling and headings.
Bold helps emphasis, but use accessible methods for screen readers.
Main Points
- Remember: Ctrl+B or Cmd+B toggles bold in most apps
- Bold toggling is a formatting action, not a content change
- App behavior varies: Markdown vs. rich text modes differ in how bold is stored
- Preview your formatting to ensure it renders correctly across platforms