How to Build and Test Cron Expressions Online

Cron expressions are used to schedule tasks and automate recurring jobs in Unix-like systems, cloud platforms, and job schedulers. While powerful, cron syntax can be cryptic and error-prone to write manually. This guide shows you how to build and test cron expressions using fixie.tools — a free visual cron builder that generates expressions, explains them in plain English, shows upcoming execution times, and requires no signup.

Step 1: Open the Cron Expression Builder

Navigate to fixie.tools/cron in your web browser. The tool provides both a visual builder interface and a direct syntax editor for advanced users. No account or installation is required. The tool works entirely in your browser with no server communication.

Step 2: Choose Your Schedule Type

Start by selecting your schedule type from the common patterns: every minute, hourly, daily, weekly, monthly, or custom. The tool provides presets for common schedules like 'every day at 2am', 'every Monday at 9am', 'first day of every month', etc. These presets are a great starting point that you can customize further.

Step 3: Build Your Expression Visually

Use the visual controls to specify when your task should run. Set the minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7, where both 0 and 7 represent Sunday). You can specify single values (5), ranges (1-5), lists (1,3,5), intervals (*/15 for 'every 15'), or combinations. The tool validates your choices and prevents invalid combinations.

Step 4: View Human-Readable Explanation

As you build your expression, the tool displays a human-readable explanation in plain English. For example, '0 2 * * 1-5' translates to 'At 2:00 AM, Monday through Friday'. This helps you verify that your expression does what you intend before deploying it. You can also see the full cron syntax that you'll paste into your system or scheduler.

Step 5: Test with Upcoming Executions

Click the test button to see the next 10-20 execution times for your cron expression. This preview shows you exactly when your task will run, helping catch mistakes like accidentally scheduling tasks on weekends, holidays, or at unintended frequencies. If the execution times don't match your expectations, refine your expression and test again. Once satisfied, copy the cron expression to use in your system.

Frequently Asked Questions

Is the cron expression builder free?
Yes, Fixie's Cron Expression Builder is completely free with no signup requirements, no usage limits, and no ads. Unlike tools like Crontab.guru that have simpler interfaces or Cronhub that requires signup for advanced features, Fixie provides full functionality for free.
What does each field in a cron expression mean?
Cron expressions have 5 fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), and day of week (0-7). An asterisk (*) means 'any value'. For example, '30 2 * * *' means 'at 2:30 AM every day'. Some systems support a 6th field for seconds or a 7th for year, but the standard format uses 5 fields.
Can I schedule a task to run every weekday?
Yes, use '1-5' or 'MON-FRI' in the day of week field. For example, '0 9 * * 1-5' runs at 9:00 AM Monday through Friday. Note that day of week uses 0 or 7 for Sunday, 1 for Monday, through 6 for Saturday. You can also use named days like MON, TUE, etc. in some systems.
What does '*/15' mean in a cron expression?
The syntax '*/15' means 'every 15 units'. In the minute field, '*/15' means every 15 minutes (0, 15, 30, 45). In the hour field, it means every 15 hours. This is shorthand for specifying intervals and is useful for recurring tasks at regular intervals.
How do I schedule a task for the last day of every month?
Standard cron doesn't directly support 'last day of month', but you can approximate it by running the task on day 28-31 with logic to check if it's the last day, or use extended cron syntax (if your system supports it) with 'L' for last. For most systems, it's easier to handle 'last day' logic in your script rather than in cron.

Related Tools