100% FREE · NO SIGNUP · UNLIMITED

Free Cron Job Expression Generator

Describe when you want a task to run and get a valid crontab expression with a field-by-field explanation. Free, no signup, instant.

plain English in · working code out  ·  ⌘↵ to run

Free forever · no signup · no credit card · unlimited

Live sample · Rename files — type above to make your own
freecodegen.pyPython
import os

# Folder to clean up — change this to your path
FOLDER = "./photos"

for i, name in enumerate(sorted(os.listdir(FOLDER)), start=1):
    src = os.path.join(FOLDER, name)
    if not os.path.isfile(src):
        continue
    ext = os.path.splitext(name)[1].lower()
    dst = os.path.join(FOLDER, f"photo_{i:03d}{ext}")
    os.rename(src, dst)
    print(f"{name} -> {os.path.basename(dst)}")
How it works

This script renames every file in a folder to photo_001, photo_002, and so on, keeping each file’s extension. Set FOLDER to your folder, then run python rename.py from a terminal.

How to generate a cron expression in 3 steps

  1. Describe your schedule

    Write when you want the task to run in plain English: every weekday at 6am, the first of every month at midnight, every 30 minutes during business hours.

  2. Get the cron expression

    FreeCodeGen generates the crontab string and explains each field — minute, hour, day of month, month, day of week — so you can verify it is correct before using it.

  3. Copy and deploy

    Copy the cron expression into your crontab, CI/CD scheduler, cloud function trigger, or any tool that accepts cron syntax.

Frequently asked questions

What is a cron expression?

A cron expression is a five-field string that tells a scheduler when to run a task: minute, hour, day-of-month, month, day-of-week. Special characters (*, /, -, ,) let you express ranges, steps, and lists.

Is the cron expression in UTC?

Most Unix cron and cloud schedulers run in UTC by default. If you want local time, mention your timezone and we will note the UTC equivalent. Always verify the timezone behavior of the specific platform you are using.

What is the difference between 5-field and 6-field cron syntax?

Standard cron uses 5 fields (minute hour day-of-month month day-of-week). Some platforms such as AWS EventBridge and Quartz Scheduler add a 6th field for seconds at the start. If your platform uses 6 fields, mention it in your description.

Can it generate AWS EventBridge or GitHub Actions schedule expressions?

Yes — mention the platform in your description and the generator will produce the correct syntax and note any differences from standard cron.

Is it free? Do I need to sign up?

Completely free, no signup required. Generate as many cron expressions as you need.