SMPTE Timecode Calculator
Operator: Abdulla Al Fahad. How tools are built and checked
Timecode looks like a clock and does not behave like one. At 29.97 frames a second the numbers skip, so adding 30 seconds to one drop-frame timecode and landing on another is not plain addition, and two timecodes at different frame rates cannot be compared digit by digit.
This page does the counting. It adds, subtracts, multiplies and divides timecodes at ten frame rates, converts between frame counts, real seconds and film feet, shows any time at every rate at once, and converts a whole column of a CSV in one go.
Drop-frame arithmetic follows the SMPTE 12M numbering and gives the standard drop-frame counts, such as the 107,892 frames in an hour of 29.97 drop-frame.
Key features
- 23.976, 24, 25, 29.97 drop-frame, 29.97 non-drop, 30, 50, 59.94 drop-frame, 59.94 non-drop and 60 fps
- Add, subtract, multiply and divide, with an optional wrap at 24 hours and a clear reason for any timecode that cannot exist
- Input as 01:00:00:00, with a semicolon or dot before the frames, as digits only (01000000) or shortened (3:04)
- A conversion panel for frames, real seconds, feet+frames (35 mm 4-perf and 2-perf, 16 mm) and every frame rate, keeping either the same moment or the same frame count
- A batch tool for CSV, TSV or XLSX columns: retime, offset, frames, seconds, feet+frames, and back from frames or seconds
- Results as text you can copy, and a CSV with the converted column added at the end
How drop-frame counting and rate conversion work
A timecode counts frames in each second up to the nominal rate: 24 for 23.976 and 24, 30 for the 29.97 and 30 rates, 60 for 59.94 and 60. The 29.97 and 59.94 rates actually run 0.1% slower than 30 and 60, so a count of 30 frames a second falls behind a wall clock by 3.6 seconds an hour. Drop-frame fixes the clock by skipping numbers, not frames: it leaves out frame numbers 00 and 01 at the start of every minute except every tenth minute (00, 10, 20 and so on), which is 108 numbers an hour at 29.97, and 00 to 03, four per minute and 216 an hour, at 59.94.
A day at 29.97 drop-frame is 2,589,408 frames and an hour is 107,892. Real time is the frame count times 1001 and divided by 30,000, so an hour of drop-frame is 3,599.996 seconds, within 4 ms of the clock, where an hour of non-drop is 3,603.6 seconds.
Feet and frames count film: a foot of 35 mm four-perf film holds 16 frames, two-perf holds 32, and 16 mm holds 40. The notation is feet+frames, so 90+08 on 35 mm four-perf is frame 1,448.
How it works
A timecode is turned into a frame count first. For drop-frame the minutes are counted and the dropped numbers subtracted: frames = (60 x minutes + seconds) x 30 + frames - 2 x (minutes - minutes div 10). The inverse puts the skipped numbers back before splitting the count into hours, minutes, seconds and frames. Arithmetic is on frame counts, so drop-frame carries correctly across minute boundaries.
To change frame rate by real time, the page converts the count to seconds at the old rate and then to the nearest frame at the new rate. To keep the frame count, the number is simply relabelled, which is what happens when a 24 fps project is conformed to 25 fps playback.
When to use it
- An assistant editor has a marker list at 29.97 drop-frame and needs the same moments at 25 fps for a PAL deliverable: Timecode to another frame rate, Keep the same real-time moment.
- A show runs 00:56:12;20 and its slot ends at 01:00:00;00 drop-frame: subtract to see that 00:03:47;10 (6,814 frames) is left to fill.
- A conform from 24 fps to 25 fps playback: Keep the same frame count, and 01:00:00:00 at 25 fps becomes 01:02:30:00 at 24, 90,000 frames in both.
- A film-out request in feet and frames: type the timecode and read 35 mm four-perf footage from the conversion panel.
Inputs
- Choose the frame rate and type the first timecode and the second timecode or number.
- Pick add, subtract, multiply or divide, and read the result with its frame count and real seconds.
- For other forms, type a value in the Convert panel and choose whether it is a timecode, frames, seconds or feet+frames.
- For a list, load a CSV or paste one, pick the column and operation, check the 50-row preview, and download.
Worked example
Calculator and converter at 29.97 fps drop-frame
01:00:00;00 + 00:00:30;15, and 00:00:59;29 plus one frame, and 01:00:00;00 converted to 23.976 by real timeThe three answers
01:00:00;00 + 00:00:30;15 = 01:00:30;15, which is 108,807 frames and 3,630.527 s of real time.
00:00:59;29 + 1 frame = 00:01:00;02, because 00:01:00;00 and 00:01:00;01 do not exist.
01:00:00;00 is 107,892 frames and 3,599.996 s; at 23.976 by real time it is 00:59:56:10.Tips for best results
- Enter 29.97 drop-frame timecodes with a semicolon before the frames so the entry is easy to check against the display.
- Turn off wrap at 24 hours when a result before 00:00:00:00 or past 23:59:59 should be an error, such as an offset larger than the timecode it is subtracted from.
- In a file, the first line is read as the headers, so a single column of timecodes needs a header line above it; text pasted as a bare list of timecodes gets one added.
Limits
Dropping frame numbers does not drop frames, and the same digits mean different moments in the two systems. 01:00:00;00 drop-frame is frame 107,892, while 01:00:00:00 non-drop is frame 108,000, which is 108 frames (3.6 s) later. A given moment has one frame count whichever way it is labelled.
Multiplying and dividing round to the nearest whole frame, so multiplying then dividing by the same number may not return the starting value.
Feet+frames depends on the film gauge; the same frame number reads differently on 16 mm and 35 mm.
Common errors and how to fix them
- 00:01:00;00 does not exist in drop-frame
- Frames 0 to 1 are skipped at the start of every minute except 0, 10, 20, 30, 40 and 50. Use 00:01:00;02 or choose a non-drop rate.
- Frame 30 does not exist at 29.97 fps drop-frame: frames run 0 to 29
- The frames field is too large for the rate; it should be below the nominal frame rate.
- 60 minutes and 00 seconds are not valid
- Minutes and seconds stop at 59. Carry the extra into the next unit.
Best practices
- Do all the arithmetic at the frame rate of the project and convert to another rate at the end, once.
- Keep the timecode start of the sequence in mind: if a sequence starts at 01:00:00:00, subtract that first to get the duration.
What the batch operations do to each cell
Every cell in the chosen column is converted on its own and written to a new column at the right of the CSV; the original columns are untouched. A cell that does not parse for the chosen rate is left empty and counted, with the first problem named, so one bad row does not stop the others. Empty cells stay empty.
The retime operation has two modes. Keeping the real-time moment is for moving a marker list to a deliverable at another rate; keeping the frame count is for relabelling a conformed sequence. Offset adds or subtracts one timecode at the column's rate; with wrapping on, results stay valid timecodes by wrapping at 24 hours, and with it off, a result before zero or past 24 hours is reported as an error for that cell.
Checking the landmarks yourself
At 29.97 drop-frame, 00:09:59;29 plus a frame is 00:10:00;00, because the tenth minute drops nothing, while 00:00:59;29 plus a frame is 00:01:00;02. At 59.94 drop-frame, 00:00:59;59 plus a frame is 00:01:00;04. Every frame count in a 24-hour day converts to a timecode and back to the same count at all ten rates, and no drop-frame label that skips a number is ever produced.
Frequently asked questions
Can I convert 23.976 to 29.97 drop-frame?
Yes. Choose 23.976 as the column's rate and 29.97 drop-frame as the target and keep the real-time moment; each timecode becomes the nearest frame at the new rate.
Why is the 59.94 drop-frame hour 215,784 frames?
At 60 frames a second an hour has 216,000 numbers, and drop-frame skips 4 at the start of each of the 54 minutes that are not a multiple of ten: 216 skipped numbers, so 215,784.