# Free Mac sleep and power tools

Five free tools in your browser: build a caffeinate command, read pmset -g, see why a Mac woke, check sleep drain and estimate lid-closed battery time.

- [caffeinate command builder](https://keepmacawake.com/tools/caffeinate-builder.md): How do I use caffeinate on a Mac? Pick what to keep awake and for how long, and get the exact caffeinate command with each flag explained and what it cannot do. Nothing leaves your browser.
- [Mac wake reasons](https://keepmacawake.com/tools/mac-wake-reasons.md): Why did my Mac wake up? Paste pmset -g log and see every sleep and wake with its reason in plain English: dark wakes, Power Nap, the lid. Nothing leaves your browser.
- [MacBook battery drain checker](https://keepmacawake.com/tools/macbook-battery-drain-sleep.md): Why does my MacBook battery drain while sleeping? Paste pmset -g log and see how much charge your MacBook lost per hour asleep and which dark wakes took the time. Nothing leaves your browser.
- [Lid-closed battery time estimator](https://keepmacawake.com/tools/macbook-lid-closed-battery-time.md): How long will my MacBook last with the lid closed? Estimate how many hours a MacBook runs on battery with the lid closed, from the drain you measure down to the floor you pick. Nothing leaves your browser.
- [pmset -g explainer](https://keepmacawake.com/tools/pmset-explained.md): What does pmset -g mean? Paste pmset -g and see what each Mac sleep setting means, which one keeps a closed MacBook awake and what to fix. Nothing leaves your browser.

Keep Mac Awake: https://keepmacawake.com/ · For AI agents: https://keepmacawake.com/llms.txt
