Guide

Cron Expression Examples and How to Read Them

A standard cron expression has five fields. Learn what each one means and you can read any schedule at a glance.

Updated

Try it now: Cron Expression Parser. It runs in your browser, with no signup.

The five fields

A job runs when the current time matches every field. A star means every value.

*  *  *  *  *
|  |  |  |  |
|  |  |  |  +-- day of week   (0-6, Sunday is 0; many systems also accept 7)
|  |  |  +----- month         (1-12)
|  |  +-------- day of month  (1-31)
|  +----------- hour          (0-23)
+-------------- minute        (0-59)

Special characters

  • * any value.
  • , a list: 1,15 means the 1st and the 15th.
  • - a range: 1-5 means Monday to Friday in the day-of-week field.
  • / a step: */5 in the minute field means every 5 minutes.

Common schedules

Paste any of these into the Cron Expression Parser to see the plain-English description, or start from the presets in the Cron Expression Generator.

* * * * *       every minute
*/5 * * * *     every 5 minutes
*/15 * * * *    every 15 minutes
0 * * * *       at the start of every hour
0 0 * * *       every day at midnight
30 2 * * *      every day at 02:30
0 9 * * 1-5     at 09:00 on weekdays
30 8 * * 1      at 08:30 every Monday
0 0 * * 0       every Sunday at midnight
0 0 1 * *       at midnight on the 1st of each month
0 0 1 1 *       at midnight on 1 January

Traps that cause missed or extra runs

  • Day of month and day of week together: in standard cron, if both fields are restricted, the job runs when either one matches, not both.
  • Time zone: cron uses the time zone of the machine or scheduler. GitHub Actions scheduled workflows use UTC. Kubernetes CronJobs support a timeZone field in recent versions.
  • Overlapping runs: if a job takes longer than its interval, runs can stack up. Add a lock or a concurrency policy.
  • Daylight saving time: a job at 02:30 can be skipped or run twice on the days clocks change. Schedule in UTC when exact timing matters.
  • Different dialects: Quartz and Spring use six or seven fields with seconds, so an expression is not portable between them and standard five-field cron.

Frequently asked questions

What does */5 * * * * mean?

It runs every 5 minutes: the */5 in the minute field means every fifth minute, and the stars mean every hour, day, month and weekday.

How do I run a cron job every 10 seconds?

Standard cron cannot. Its smallest unit is a minute. Use a scheduler that supports seconds, a loop with sleep, or a systemd timer.

Does Sunday equal 0 or 7?

Most cron implementations accept both, but 0 is the safe choice. Check your scheduler documentation.

Tools used in this guide

onlinedevelopertool.com is a collection of 54 free, browser-based utilities for the small jobs that interrupt real work: formatting a JSON response, decoding a token, converting a timestamp, generating a UUID or checking a hash. Each tool has its own page with a short explanation, a worked example and answers to common questions, so you can use it and learn what it does at the same time.

There is no account to create and nothing to install. Tools run in your browser, so the text you paste is processed on your own device. The one exception is the Website Status Checker, which sends a request from your browser to the address you enter.

Three steps: paste your input, click the tool, copy the result, all inside your browser
Popular developer utilities: JWT decoder, UUID generator, Base64 decoder, SHA-256 hash, regex tester and timestamp converter

What you can do here

  • JSON Tools

    Format, validate, beautify and minify JSON, generate C#, TypeScript, Java, Python, Go, PHP and Kotlin models from it, or convert between JSON, YAML and CSV.

  • Encoders & Decoders

    URL, Base64 and HTML encoding and decoding, plus a JWT decoder for reading token claims.

  • Generators & Hashes

    Generate UUIDs and JWTs, validate UUIDs, and create MD5, SHA-256 and SHA-512 hashes.

  • Web Tools

    Timestamps, color codes, query strings and cron expressions - the small things web work keeps throwing at you.

  • Text & Data

    Format XML and YAML, count text, change case, make slugs, test regex, diff two texts and convert number bases.

  • Website Checking

    Check whether a website or URL is reachable from your browser.

Quick developer reference

  • JSON

    Keys and strings must use double quotes, and trailing commas and comments are not allowed. Those are the three most common reasons a payload fails to parse.

    Validate JSON
  • JWT

    A JSON Web Token is three Base64URL parts joined by dots: header, payload and signature. Decoding shows the claims but does not prove the token is genuine; only signature verification does.

    Decode a JWT
  • Base64

    Base64 is an encoding, not encryption. Anyone can reverse it, and it makes data roughly one third larger, so never use it to hide secrets.

    Decode Base64
  • UUID

    A version 4 UUID is made of random bits and written as 8-4-4-4-12 hexadecimal characters. Collisions are astronomically unlikely, which is why they work well as identifiers.

    Generate a UUID
  • Timestamps

    A Unix timestamp counts time since 1 January 1970 UTC. Ten digits usually means seconds and thirteen digits usually means milliseconds.

    Convert a timestamp
  • Hashes

    MD5 is fine for quick checksums but is not safe for security. Prefer SHA-256 or SHA-512, and remember that hashing is one-way and is not encryption.

    Create a SHA-256 hash

Missing a tool you need? Visit the contact page and tell us what you reach for most often. You can also browse every tool or read the About page to see how the site is built and what it does with your data.