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.
Free forever · no signup · no credit card · unlimited
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)}")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.
Cron expressions are five-field strings that define when a scheduled task should run. They are concise and powerful — but the syntax is non-obvious for anyone who does not write them regularly. FreeCodeGen takes a plain-English schedule description and generates a valid cron expression with a clear explanation of what each field means.
How to generate a cron expression in 3 steps
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.
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.
Copy and deploy
Copy the cron expression into your crontab, CI/CD scheduler, cloud function trigger, or any tool that accepts cron syntax.
About cron job expressions
A cron expression is a string of five fields that tell a scheduler exactly when to run a command. The fields represent minute (0-59), hour (0-23), day of the month (1-31), month (1-12), and day of the week (0-7, where both 0 and 7 represent Sunday). Special characters let you express ranges, steps, and lists: a hyphen means a range, a comma separates specific values, a slash means a step (*/15 means every 15 minutes), and an asterisk means every.
For example: 30 7 * * 1-5 means minute 30, hour 7, any day of month, any month, Monday through Friday — which is 7:30 AM on weekdays. 0 2 * * * means 2 AM every day. 0 0 1 * * means midnight on the first day of every month.
Cron is built into every Unix/Linux system and is available as a managed service in most cloud platforms: AWS EventBridge, Google Cloud Scheduler, GitHub Actions schedule triggers, and Vercel Cron Jobs. The syntax is mostly consistent, but some platforms use a six-field format with a seconds field at the start — AWS EventBridge and Quartz Scheduler use this variant. If your platform uses six fields, mention that in your description.
Common mistakes: forgetting that day-of-week 0 and 7 both mean Sunday (so 1-5 is Monday through Friday), confusing UTC with local time (most schedulers run in UTC by default), and combining day-of-month and day-of-week fields in ways that produce unexpected behavior — when both are set to non-wildcard values, most cron implementations run the job when either condition is true, not both.
FreeCodeGen generates the expression, explains each field, and notes any platform-specific variants. Free, no signup, unlimited generations.
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.