Cron Expression Generator & Schedule Tester
Generate, decode, and validate 5-field POSIX cron expressions for Linux, Kubernetes, GitHub Actions, and Vercel, with live previews of upcoming UTC and local execution timestamps.
0 9 * * 1-5Ready locally via WebAssembly & JavaScript
Next 8 consecutive weekday 09:00:00 UTC timestamps100% Client-Side • Zero Server Upload
A single misplaced asterisk or misunderstood day-of-week rule in a cron expression can silently skip nightly billing runs or trigger heavy database migrations every minute. Because Linux crond, Kubernetes CronJob, GitHub Actions, and Vercel Cron enforce slightly different validation rules and timezone defaults, inspecting the decoded schedule and upcoming timestamps before deployment saves hours of incident triage.
This Cron Expression Generator & Schedule Tester computes every schedule preview 100% client-side inside your browser. Your internal job intervals, deployment cadences, and maintenance windows never leave your device.
5-Field POSIX Crontab Specification and Scheduler Dialects
Traditional UNIX and POSIX crontab lines consist of five whitespace-separated fields: minute (0-59), hour (0-23), day-of-month (1-31), month (1-12 or JAN-DEC), and day-of-week (0-6 or SUN-SAT, with Vixie cron and Kubernetes also accepting 7 as Sunday). Each field accepts wildcards (*), comma-separated lists (1,15), closed ranges (1-5), and step operators (*/15 or 0-30/5). Note that step values divide the field's natural range starting from its minimum rather than measuring elapsed time from deployment: */7 * * * * triggers at minutes 0, 7, 14, 21, 28, 35, 42, 49, 56 and then resets at 0 on the next hour, leaving only a 4-minute gap between :56 and :00.
One specification detail trips up even experienced engineers: the DOM + DOW union rule. When either day-of-month or day-of-week is *, the scheduler intersects normally. When both are restricted to non-* values, standard Vixie cron computes a logical OR. Thus 0 3 1 * 1 does not mean "the first Monday of the month at 03:00"—it runs on the 1st of every month and on every Monday. To target only the first Monday, schedule 0 3 1-7 * 1 only on engines supporting non-POSIX extensions, or run 0 3 * * 1 and verify day <= 7 inside your application code.
Non-POSIX ecosystems add custom extensions. Quartz, Spring, and AWS EventBridge use 6 or 7 fields (adding seconds and year) and require ? in one of DOM/DOW to resolve ambiguity, while Linux crond supports macros like @hourly and @daily.
Step-by-Step Walkthrough: Designing Safe Multi-Platform Cron Schedules
Suppose you need a weekday database compaction job running at 02:17 UTC—intentionally staggered 17 minutes past the hour to avoid top-of-hour cluster contention. Your 5-field POSIX expression is:
17 2 * * 1-5
Reading left to right: minute 17, hour 2, any day of month (*), any month (*), Monday through Friday (1-5). Inspecting the next five UTC timestamps confirms consistent weekday intervals with zero weekend executions.
Deploying that same expression across modern cloud platforms requires matching each platform's concurrency and timezone fields:
apiVersion: batch/v1
kind: CronJob
metadata:
name: db-compaction
spec:
schedule: "17 2 * * 1-5"
timeZone: "Etc/UTC"
concurrencyPolicy: Forbid
startingDeadlineSeconds: 300
For GitHub Actions, note that schedule always executes in UTC and ignores local timezone strings:
on:
schedule:
- cron: "17 2 * * 1-5"
In vercel.json, Hobby plans restrict crons to once per day, whereas Pro and Enterprise plans allow minute-level intervals, all evaluated in UTC:
{
"crons": [
{
"path": "/api/jobs/compact",
"schedule": "17 2 * * 1-5"
}
]
}
Platform Cron Dialect and Behavior Comparison Table
Before copying a cron string between environments, check how each scheduler handles field count, timezones, and special modifiers:
| Platform | Field Count | Default Timezone | DOM + DOW Logic | Key Production Constraint |
|---|---|---|---|---|
| Linux Vixie Cron | 5 (plus macros) | System local time | Logical OR | Sensitive to host /etc/localtime DST shifts |
| Kubernetes CronJob | 5 (plus macros) | Controller UTC (timeZone optional) | Logical OR | concurrencyPolicy defaults to Allow |
| GitHub Actions | 5 (POSIX only) | Always UTC | Logical OR | Shortest interval 5m; delayed during :00 spikes |
| Vercel Cron | 5 (POSIX only) | Always UTC | Logical OR | Hobby plan capped at daily; no overlap guard |
| AWS EventBridge | 6 (adds year) | Always UTC | Requires ? in one | Uses ? placeholder; rejects * in both |
| Spring / Quartz | 6 (adds seconds) | JVM / configured zone | Requires ? in one | Supports L, W, and # nth-weekday syntax |
UTC vs. DST Pitfalls, Overlap, and Production Safeguards
Running cron jobs against local wall-clock timezones such as America/New_York or Europe/London introduces two annual failure modes during Daylight Saving Time transitions. During spring-forward, clocks jump from 01:59 directly to 03:00; any job scheduled between 02:00 and 02:59 never matches and is silently skipped. During fall-back, the 01:00–01:59 hour occurs twice, causing a 30 1 * * * job to execute twice within 60 minutes—potentially double-charging invoices or duplicating report emails.
Standardizing all backend schedulers on Etc/UTC eliminates DST anomalies entirely. If business stakeholders require a report at "09:00 New York time," schedule the job frequently or handle timezone-aware dispatch inside application logic where DST transitions are explicitly guarded.
Finally, treat cron triggers as at-least-once or best-effort signals rather than exact transactional timers. Always set concurrencyPolicy: Forbid on Kubernetes CronJob resources so a slow job cannot overlap its next run, configure startingDeadlineSeconds carefully (knowing that Kubernetes may halt scheduling if more than 100 missed schedules accrue during control-plane downtime), and acquire a distributed lock (such as PostgreSQL advisory locks or Redis SET NX) inside serverless handlers. Also avoid scheduling monthly billing jobs on days 29, 30, or 31—those dates simply never fire in February or 30-day months unless your job runs daily and checks for month-end in code—and stagger minutes away from :00 and :30 to escape global queueing delays.
How to Use Cron Expression Generator & Schedule Tester
Select preset intervals or enter custom values across minute, hour, DOM, month, and DOW.
Inspect the decoded English summary to confirm no unintended OR-logic exists.
Compare the upcoming execution timestamps in both UTC and local wall-clock time.
Copy the validated 5-field expression into your crontab, YAML manifest, or vercel.json.
Real Examples
Weekday Morning Report
Runs Monday–Friday at 09:00 UTC.
0 9 * * 1-5Next 8 consecutive weekday 09:00:00 UTC timestampsFrequently Asked Questions
What does each field in a 5-field POSIX cron expression represent?
Why did my cron job run every day when I restricted both day-of-month and day-of-week?
Should Kubernetes and cloud cron jobs use UTC or a local timezone?
Do GitHub Actions and Vercel Cron support 6-field second-level schedules?
Why do my scheduled cloud cron jobs start a few minutes late at :00?
Key Features
- Interactive 5-field POSIX crontab builder with instant human-readable translation
- Next-run execution timeline comparing UTC against your local browser timezone
- Validation for ranges, step increments, lists, and Sunday 0/7 equivalence
- Platform guidance for Linux crontab, Kubernetes CronJob, GitHub Actions, and Vercel
- 100% client-side evaluation with zero schedule or infrastructure metadata uploaded
Common Use Cases
- Scheduling Kubernetes CronJob database backups and log rotation pods
- Configuring GitHub Actions nightly security scans and dependency audits
- Validating Vercel Cron endpoints before deploying vercel.json updates
- Auditing legacy Linux /etc/crontab entries for unintended OR-logic firing
- Verifying how UTC schedules map onto regional business hours across seasons
Related Tools
Explore More Tools in This Category
View All Developer & Utility ToolsUnix Timestamp & Epoch Converter
Convert between 10-digit seconds, 13-digit millisecond, microsecond, and nanosecond Unix epochs and ISO 8601 dates, inspect JWT exp/iat timestamps, and test Year 2038 boundaries.
Number Base Converter (Binary, Octal, Decimal, Hex)
Translate arbitrary-precision integers across Binary, Octal, Decimal, Hexadecimal, and Base 36 with exact BigInt arithmetic.
cURL to JavaScript Fetch & Python Converter
Convert raw cURL CLI commands into production-ready ES2024 async/await fetch() and Python requests snippets in one click.
Meta Tag Generator & SEO Simulator
Generate standards-compliant HTML meta tags, Open Graph and Twitter Card markup, hreflang clusters, PWA headers, and JSON-LD structured data with real-time SERP and social snippet previews.
Open Graph Generator & Social Previewer
Design, validate, and preview Open Graph (OG) metadata across Facebook, LinkedIn, Discord, Slack, WhatsApp, Telegram, and iMessage with local image dimension and payload analysis.
Twitter Card Generator & X Social Preview
Generate standards-compliant X (Twitter) Card meta tags for Summary, Summary Large Image, App, and Player formats with desktop/mobile previews, Open Graph sync, and live quality scoring.
Robots.txt Generator & Crawl Budget Optimizer
Build, validate, and optimize RFC 9309 robots.txt files with multi-crawler rule blocks, staging safety switches, Next.js and WordPress presets, and real-time crawl budget diagnostics.
Sitemap.xml Generator & Index Builder
Build valid standard, image, video, and news XML sitemaps or multi-file sitemap indexes with framework presets, real-time protocol validation, and automatic 45,000-URL ZIP partitioning — 100% client-side.