크론 표현식 해석기
크론 표현식의 실행 주기·다음 실행을 해석
필드 순서: 분(0-59) 시(0-23) 일(1-31) 월(1-12) 요일(0-7, 0·7=일요일). *, */n, a-b, a,b,c 지원.
Field order: minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-7, 0/7=Sun). Supports *, */n, a-b, a,b,c.
입력한 표현식은 브라우저에서만 처리되며 서버로 전송·저장되지 않습니다.Your expression is processed entirely in your browser — never uploaded or stored.
크론 표현식이란?
크론(cron) 표현식은 리눅스·서버 스케줄러에서 작업 실행 시각을 지정하는 5개 필드(분 시 일 월 요일) 문자열입니다. 이 도구는 표현식을 입력하면 실행 주기를 사람이 읽는 문장으로 설명하고, 현재 시각 기준 다음 실행 시각 5개를 계산해 보여줍니다.
필드·기호 설명
- 필드 순서: 분(0-59) 시(0-23) 일(1-31) 월(1-12) 요일(0-7, 0과 7은 모두 일요일)
- * : 모든 값(매 단위)
- */n : n 간격마다 (예: */15 = 0,15,30,45)
- a-b : a부터 b까지 범위 (예: 1-5 = 월~금)
- a,b,c : 값 목록 (예: 1,15 = 매월 1일과 15일)
개인정보·처리 방식
모든 해석과 계산은 사용자의 브라우저 안에서만 이루어집니다. 입력한 크론 표현식은 서버로 전송되거나 저장되지 않습니다.
5필드 문법표와 일·요일 필드의 AND 결합 방식
크론 표현식은 왼쪽부터 분·시·일·월·요일 순서로 공백 구분된 5개 필드로 구성되며, 각 필드는 아래 범위를 가집니다.
| 필드 | 범위 | 비고 |
|---|---|---|
| 분 | 0-59 | - |
| 시 | 0-23 | 24시간제 |
| 일 | 1-31 | 해당 월에 없는 날짜(예: 2월 31일)는 매칭되지 않음 |
| 월 | 1-12 | - |
| 요일 | 0-7 | 0과 7 모두 일요일 |
*가 아니면 OR로 결합해 "매월 1일 또는 매주 월요일"처럼 동작하지만, 이 도구는 두 필드를 항상 AND로 결합합니다. 예를 들어 0 0 1 * 1을 실제 서버 crontab에 등록하면 매월 1일 자정과 매주 월요일 자정 모두 실행되지만, 이 도구에서 같은 표현식을 해석하면 "1일이면서 동시에 월요일인 날"(2027년 2월 1일 등)에만 실행되는 것으로 계산됩니다. 서버에 실제로 등록하기 전에는 반드시 대상 스케줄러의 문서를 확인하세요.
자주 쓰는 표현식 7가지와 시간대 함정
실무에서 자주 쓰는 크론 표현식과 그 뜻입니다(모두 이 도구로 직접 검증됨).
| 표현식 | 뜻 |
|---|---|
0 0 * * * | 매일 자정(0시 0분) |
0 9 * * 1-5 | 평일(월~금) 오전 9시 |
*/15 * * * * | 15분마다(0·15·30·45분) |
0 0 1 * * | 매월 1일 자정 |
0 * * * * | 매시 정각 |
30 18 * * 5 | 매주 금요일 오후 6시 30분 |
0 0 1 1 * | 매년 1월 1일 자정(신정) |
0 9 * * *를 UTC 서버에 그대로 등록하면 실제로는 한국 시간 오후 6시에 실행됩니다. 서버에 등록하기 전 서버의 시간대 설정을 반드시 확인하세요.
What is a cron expression?
A cron expression is a 5-field string (minute hour day month weekday) used by Linux and server schedulers to specify when a job runs. Enter an expression to get a human-readable schedule description and the next 5 run times based on the current time.
Fields & symbols
- Field order: minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-7, both 0 and 7 mean Sunday)
- *: every value
- */n: every n units (e.g. */15 = 0,15,30,45)
- a-b: range from a to b (e.g. 1-5 = Mon-Fri)
- a,b,c: a list of values (e.g. 1,15 = the 1st and 15th of the month)
Privacy & processing
All parsing and calculation happen in your browser. Your cron expression is never uploaded or stored.
The 5-field syntax table, and how day/weekday combine with AND
A cron expression has five space-separated fields, in order: minute, hour, day, month, weekday. Each field has the following range.
| Field | Range | Note |
|---|---|---|
| Minute | 0-59 | - |
| Hour | 0-23 | 24-hour clock |
| Day | 1-31 | Dates that don't exist in a given month (e.g. Feb 31) never match |
| Month | 1-12 | - |
| Weekday | 0-7 | Both 0 and 7 mean Sunday |
*) — acting like "the 1st of the month OR every Monday." This tool always combines them with AND instead. Registering 0 0 1 * 1 on a real server runs at midnight on the 1st AND at midnight every Monday, but this tool only matches days that are both the 1st and a Monday (e.g. Feb 1, 2027). Always check your target scheduler's documentation before deploying.
7 common expressions, and the time zone trap
Common real-world cron expressions and what they mean (all verified with this tool).
| Expression | Meaning |
|---|---|
0 0 * * * | Every day at midnight |
0 9 * * 1-5 | Weekdays (Mon-Fri) at 9 AM |
*/15 * * * * | Every 15 minutes (:00, :15, :30, :45) |
0 0 1 * * | 1st of the month at midnight |
0 * * * * | Every hour on the hour |
30 18 * * 5 | Every Friday at 6:30 PM |
0 0 1 1 * | January 1 at midnight (New Year's) |
0 9 * * * on a UTC server while intending 9 AM Korea time (KST, UTC+9) will actually run at 6 PM KST. Always check the server's time zone before deploying.