Skip to content
Cron Expression Generator

Cron expression for every 30 seconds

The cron expression to run a job every 30 seconds is:

*/30 * * * * *

Every 30 seconds.

Classic Linux crontab cannot run anything more often than once a minute — its smallest unit is the minute. Schedulers that add a seconds field (Spring @Scheduled, Quartz, node-cron, Hangfire) accept the 6-field expression */30 * * * * *. In plain crontab, the standard workaround is two lines: one that runs the command every minute, and one that sleeps 30 seconds first.

Test and customize this schedule

Format
Valid

5 fields (minute hour day month weekday), or 6 with seconds first. Names like MON-FRI, macros like @daily and full crontab lines work. Press / to focus.

English

Every 30 seconds.

العربية

كل 30 ثانية.

    Quick presets

    Visual cron generator

    Pick options for each field — the expression above updates instantly.

    Next 5 executions

    Local time:

      Cheat sheet

      *
      Any value
      ,
      List — 1,15,30
      -
      Range — 1-5
      /
      Step — */10
      ?
      No specific value (day fields)
      @daily
      Macro for 0 0 * * *

      Field-by-field breakdown

      FieldValueMeaning
      Second*/300 and 30
      Minute*Every minute
      Hour*Every hour
      Day of month*Every day of the month
      Month*Every month
      Day of week*Every day of the week

      Copy-paste examples

      Spring Boot (Java)

      @Scheduled(cron = "*/30 * * * * *")
      public void runJob() {
          // runs on the schedule above
      }

      node-cron (Node.js)

      import cron from 'node-cron';
      
      cron.schedule('*/30 * * * * *', () => {
        console.log('job ran at', new Date().toISOString());
      });

      Plain Linux crontab (workaround)

      * * * * * /usr/local/bin/my-job.sh
      * * * * * sleep 30; /usr/local/bin/my-job.sh

      Common variations

      Click an expression to load it into the tool above.

      Cron expressionSchedule
      Every 10 seconds.
      At seconds 0 and 30 past the minute.
      Every 30 seconds, between 9:00 AM and 5:59 PM, Monday through Friday.
      Every 5 seconds.

      Frequently asked questions

      What does */30 * * * * * mean in cron?

      Every 30 seconds. The six fields are second */30, minute *, hour *, day of month *, month * and day of week *.

      When will */30 * * * * * run next?

      It depends on the current time and the time zone of the machine running cron. The calculator on this page shows the next 5 run times in your local time zone; on a server, cron uses the system time zone, which is often UTC.

      Can Linux crontab run a job every 30 seconds?

      Not directly — crontab only supports one-minute resolution. Add two entries: * * * * * /path/to/job and * * * * * sleep 30; /path/to/job. For sub-minute scheduling without workarounds, use a systemd timer (OnUnitActiveSec=30s) or a scheduler with a seconds field.

      Related cron schedules

      Browse all cron expression examples →