NewKit / Reference / Crontab Syntax

Crontab Syntax

How to write cron expressions (crontab). · Processed in your browser.

Field / expressionMeaning
* * * * *minuto · hora · día del mes · mes · día de semana
Minuto0–59
Hora0–23
Día del mes1–31
Mes1–12 (o JAN–DEC)
Día de semana0–6 (0 = domingo, también SUN–SAT)
*cualquier valor
*/5cada 5 unidades (paso)
*/1cada unidad (equivale a *)
1,15valores 1 y 15 (lista)
1-5rango del 1 al 5
0-30/10del 0 al 30, cada 10
* * * * *cada minuto
*/15 * * * *cada 15 minutos
0 * * * *cada hora en punto
0 */2 * * *cada 2 horas
0 9 * * 1-5a las 9:00, de lunes a viernes
30 2 * * *a las 2:30 cada día
0 0 1 * *a medianoche del día 1 de cada mes
0 0 * * 0a medianoche cada domingo
@hourlycada hora (0 * * * *)
@daily / @midnightcada día a medianoche (0 0 * * *)
@weeklycada semana (0 0 * * 0)
@monthlycada mes (0 0 1 * *)
@yearly / @annuallycada año (0 0 1 1 *)
@rebootal arrancar el sistema

What is Crontab Syntax?

Cron schedules recurring tasks on Unix systems using a five-field expression: minute, hour, day of month, month and day of week. Its syntax with wildcards and steps is compact but easy to forget.

This reference explains each field and its values, along with the common wildcards (*, */5, ranges and lists) and common examples like "every 15 minutes" or "at 9:00 Monday to Friday". Use it to write or interpret any cron expression with confidence.

Some common examples: */15 * * * * (every 15 minutes), 0 9 * * 1-5 (9:00 Monday to Friday), 0 0 * * 0 (midnight on Sunday) and 30 2 1 * * (2:30 on the 1st of each month). Many modern cron daemons also accept shortcuts like @daily, @hourly or @reboot.

Frequently asked questions

What do the five cron fields mean?

Left to right: minute (0–59), hour (0–23), day of month (1–31), month (1–12) and day of week (0–6, where 0 is Sunday).

What is */5 in crontab?

The step operator: */5 in the minute field means "every 5 minutes". */1 equals every unit, i.e. the same as *.

How do I run a task every minute?

Use * * * * * (all fields as asterisks). For every 15 minutes, */15 * * * *.

What does @daily do?

It is a cron shortcut: @daily runs the task once a day at midnight (equivalent to 0 0 * * *). There are also @hourly, @weekly, @monthly, @yearly and @reboot.

Is it free?

Yes, all NewKit tools are completely free.

Is my data sent to a server?

No. Processing happens 100% in your browser, so it is safe even for sensitive data.