The Crontab Formatter takes raw, unevenly spaced crontab entries and produces a clean, column-aligned version with inline schedule annotations. Each cron field is padded to a consistent width so all commands start at the same column position, making it much easier to scan a crontab file visually.
The formatter also adds inline comments that describe each schedule in plain language, such as 'every 15 min' or 'at 02:30 daily'. These annotations help reviewers understand schedules at a glance without mentally parsing cron fields.
Environment variable lines (SHELL=, PATH=, MAILTO=) are recognized and grouped at the top of the output, separated from job entries by a blank line. This reflects the conventional crontab organization where environment settings come before scheduled jobs.
The tool runs entirely in the browser. No data is transmitted to any server. The formatted output can be copied to clipboard or downloaded as a text file. The output is valid crontab syntax and can be used directly as a replacement for the original file.
The formatting is conservative: cron expressions are never modified, only the whitespace between fields is adjusted. This means the tool cannot introduce scheduling errors. The only additions are trailing comments, which crontab interpreters ignore.
For accessibility, all interactive elements use native HTML controls with visible labels. Error messages use the alert role. The layout is responsive and collapses to single-column on narrow screens.
A practical workflow is to paste your current crontab, format it, review the annotations for correctness, then save the formatted version back to your server. This makes future maintenance easier for anyone who reads the file.
The tool handles mixed input gracefully: standard five-field entries, macro entries like @reboot, environment variables, comments, and blank lines are all processed or preserved appropriately.
