Home End Button Mac Keyboard Functions
In this article
The Home and End keys on a Mac keyboard move the cursor to the beginning or end of a line, document, or page—but their exact behavior depends on the app you're using and whether you press them alone or with modifier keys. On Apple keyboards, these keys are often labeled with arrows pointing to the upper-left and lower-right, and they work differently from the Windows version of the same keys.
What Home and End Do by Default on Mac
On a standard Apple keyboard (like the Magic Keyboard), pressing the Home key (often marked with an upward-left arrow) moves the cursor to the beginning of the current line in most text-editing apps, such as TextEdit, Pages, and many web forms. Pressing End moves it to the end of the line. This is different from Windows, where Home and End typically jump to the very top or bottom of the entire document.
In some apps, especially those built for macOS with standard text handling, the behavior is more nuanced:
- TextEdit (plain text mode): Home goes to the start of the line, End to the end of the line.
- Pages (word processing): Home goes to the start of the line, End to the end of the line.
- Safari address bar: Home goes to the beginning of the URL, End to the end.
- Terminal: Home may do nothing or may move to the start of the command line, depending on the shell and terminal emulator.
If you want Home and End to behave like they do on Windows—jumping to the very top or bottom of a document—you can change the behavior using system settings or third-party utilities, as described below.
Using Modifier Keys: Command, Control, and Option
On a Mac, you can combine Home and End with modifier keys to get more powerful navigation. The most common combinations are:
- Command (⌘) + Home: Goes to the very beginning of the document (top of the page).
- Command (⌘) + End: Goes to the very end of the document (bottom of the page).
- Control (⌃) + Home: In many apps, this also goes to the top of the document, but it may conflict with other shortcuts (e.g., in some terminals it sends a special escape sequence).
- Control (⌃) + End: Goes to the bottom of the document in many apps.
- Option (⌥) + Home/End: In some text editors, this moves the cursor to the beginning/end of the current paragraph or word, but it's not consistent across apps.
Note that in many apps, the Command+Home/End combination is the reliable way to jump to the top or bottom of a document, because the plain Home/End keys are line-oriented. For example, in Microsoft Word for Mac, Command+Home goes to the very start of the document, while plain Home goes to the start of the line.
What About the Physical Keys on a Mac Keyboard?
Apple keyboards have had a few different layouts over the years. On older full-size keyboards (like the Apple Keyboard with numeric keypad), you'll find dedicated Home and End keys in the cluster of navigation keys (along with Page Up, Page Down, and arrow keys). On newer compact keyboards (like the Magic Keyboard), the Home and End functions are accessed by pressing the Fn (Function) key combined with the left and right arrow keys:
- Fn + Left Arrow = Home (beginning of line)
- Fn + Right Arrow = End (end of line)
- Fn + Command + Left Arrow = Beginning of document
- Fn + Command + Right Arrow = End of document
This is a common source of confusion for new Mac users coming from Windows, because the physical keys aren't labeled with the words "Home" and "End"—they're just arrows. If you're using a Windows keyboard with a Mac, the Windows Home and End keys will work as line-based Home/End, but you may need to remap them if you want document-level jumps.
How to Make Home/End Behave Like Windows
If you prefer the Windows-style behavior (jump to top/bottom of document), you have a few options:
- Use System Settings (macOS Ventura and later): Go to System Settings → Keyboard → Keyboard Shortcuts → Modifier Keys. Here you can remap the Fn key, but you cannot directly change Home/End behavior without third-party tools.
- Use a third-party utility like Karabiner-Elements: This free, open-source tool lets you remap keys extensively. You can set Home to send Command+Left Arrow (which in many apps goes to the start of the line, not the document) or create a custom rule that makes Home act like Command+Home.
- Use BetterTouchTool or Keyboard Maestro: These paid utilities offer more granular control and can remap Home/End globally or per-app.
- Use the built-in "Full Keyboard Access" (macOS Sonoma and later): In System Settings → Accessibility → Keyboard, you can enable Full Keyboard Access, which lets you use Tab and arrow keys to navigate UI elements, but it doesn't change Home/End behavior in text fields.
For most users, the simplest solution is to learn the Command+Home/End shortcuts for document-level jumps and use plain Home/End for line-level navigation. That's the Mac-native way, and it's consistent across most Apple apps.
Common Problems and Misconceptions
One frequent issue is that Home/End don't work in certain apps, especially web browsers. In Safari, pressing Home/End moves the scroll position to the top/bottom of the page, not the cursor in a text field. To move the cursor to the beginning/end of a line in a text field, you need to click into the field first, then press Home/End. In Chrome, the behavior is similar: Home/End scroll the page, but if you're focused on a text input, they move the cursor.
Another misconception is that the Fn+Arrow combination is the only way to get Home/End on a Mac. That's true for compact keyboards, but if you have a full-size Apple keyboard with dedicated Home/End keys, those keys work directly. Also, some third-party keyboards (like mechanical keyboards) have their own Home/End keys that may or may not work correctly with macOS—check the manufacturer's documentation for Mac compatibility.
If you find that Home/End don't work at all in a specific app, it's likely because that app uses custom keyboard handling. For example, some code editors (like Visual Studio Code) have their own shortcuts, and you may need to set them in the app's preferences.
Home and End in Different Apps: A Quick Guide
Here's a quick rundown of how Home/End behave in popular Mac apps:
- Microsoft Word: Home = start of line, End = end of line. Command+Home = start of document, Command+End = end of document.
- Excel: Home = start of row (column A), End = end of data region (like Windows). Command+Home = cell A1, Command+End = last used cell.
- TextEdit: Home = start of line, End = end of line (in plain text mode). Command+Home = start of document, Command+End = end of document.
- Terminal (zsh/bash): Home/End may not work by default. You can use Control+A (start of line) and Control+E (end of line) instead.
- Web browsers (Safari, Chrome, Firefox): Home/End scroll the page. In a text field, they move the cursor to the start/end of the line.
These are general behaviors, but they can vary based on the app's version and settings. When in doubt, try the Command+Home/End combination first—it's the most universal for document-level jumps.
Frequently Asked Questions
Why don't my Home and End keys work on my Mac?
If you're using a compact Apple keyboard, you don't have dedicated Home/End keys—you need to press Fn+Left/Right Arrow. If you're using a Windows keyboard, the Home/End keys should work, but some apps may not respond to them. Also, make sure you're not in an app that uses custom shortcuts.
How do I go to the beginning of a line on a Mac?
Press the Home key (or Fn+Left Arrow on compact keyboards). If you're in a text field, the cursor will jump to the start of the current line. To go to the start of the entire document, press Command+Home.
How do I go to the end of a line on a Mac?
Press the End key (or Fn+Right Arrow on compact keyboards). To go to the end of the document, press Command+End.
Can I remap the Home and End keys on a Mac?
Yes, you can use third-party tools like Karabiner-Elements to remap them. For example, you can make the Home key send Command+Home, so it always goes to the top of the document. You can also use the built-in Modifier Keys settings to swap the Fn key's behavior, but that won't change Home/End directly.
Is there a way to make Home/End work like Windows on a Mac?
Yes, you can install a utility like Karabiner-Elements and create a rule that makes Home/End go to the start/end of the document instead of the line. Alternatively, you can get used to using Command+Home/End, which is the Mac-native shortcut for document-level jumps.
Do Home and End keys work in all Mac apps?
No, some apps, especially code editors and terminals, have custom keyboard handling. In Terminal, for example, you should use Control+A and Control+E. In Visual Studio Code, you can set custom keybindings in the settings.