Cron tool
Cron Expression & Crontab Generator / Parser
A cron expression generator that is also a crontab generator and a cron parser. Five Unix fields, optional seconds, next run times, and a Next.js vercel.json snippet. It all stays on your device.
Like the tool? Find a bug?Share with usGenerator / Parser
Build a cron expression, a crontab line, or paste one to parse. Next runs use this device's clock. Files stay on this device.
Expression
* * * * *
Every minute.
- Minute
- *
- every
- Hour
- *
- every
- Day
- *
- every
- Month
- *
- every
- Weekday
- *
- every
Next 5 runs
local · UTCUpcoming times will appear here.
* * * * *
import type { NextRequest } from "next/server";
// Every minute.
// vercel.json:
// {
// "crons": [{ "path": "/api/cron", "schedule": "* * * * *" }]
// }
// Vercel Cron Jobs run this GET in UTC.
export const CRON_SCHEDULE = "* * * * *";
export function GET(request: NextRequest) {
const auth = request.headers.get("authorization");
if (process.env.CRON_SECRET && auth !== `Bearer ${process.env.CRON_SECRET}`) {
return new Response("Unauthorized", { status: 401 });
}
return new Response("ok");
}