Clever Quest Lab ← Labs

DCF77 Decoder

Tune a receiver to a long-wave time transmitter in Germany, Britain, the USA or Japan and this page reads the time, the date and every bit from the tone your computer plays.

Sound is off. Choose an audio source, or press “Play demo signal” to try it without a radio.

Microphone, computer and file audio is analysed in your browser and is not uploaded. When you share computer audio, the picture of your screen is not used, recorded or uploaded, and captured sound is never played back.

--:--:--
No time decoded yet
waiting for a signal
UTC
–
Your local time
–
Computer clock
–
DUT1 (UT1 − UTC)
–

Minute being received

One box per second: 0 or 1, a dot while it is still to come, red dashed when the reading is uncertain. Small digit: the bit of the phase code (grey where fixed, red where it differs). The values describe the minute that starts at the next minute marker.

Two bits per second, A (100–200 ms) and B (200–300 ms); the reserved bits, sent as 0, are not shown. A dot while a bit is still to come, red dashed when the reading is uncertain. The values describe the minute that starts at the next minute marker.

One box per second: 0, 1 or M (marker), a dot while it is still to come, red dashed when uncertain. The values give the UTC of the minute that began at the first M; WWVB has no parity bits.

One box per second: 0, 1 or M (marker), a dot while still to come, red dashed when uncertain. The values give the Japan time of the minute that began at the first M; in minutes 15 and 45, seconds 40–48 send the call sign.

Tone amplitude (blue) relative to the carrier level. Vertical lines: second starts; shaded: the 0–100 and 100–200 ms windows; on top the decision (0, 1, M = minute marker, ? = uncertain).

Tone amplitude (blue) relative to the carrier level. Vertical lines: second starts; shaded: bit A (100–200 ms) and bit B (200–300 ms), or the 500 ms minute marker; on top bits A and B of each second (M = minute marker, ? = uncertain).

Tone amplitude (blue) relative to the carrier level. Vertical lines: second starts, where the carrier drops; shaded: 0–200 ms (low for all), 200–500 ms (low for 1 and M), 500–800 ms (low for M); on top the decision.

Tone amplitude (blue) relative to the carrier level. Vertical lines: second starts, where the carrier rises; shaded: 0–200 ms (high for all), 200–500 ms (high for 0 and 1), 500–800 ms (high for 0); on top the decision.

Click or drag on the spectrum to pick the tone. Keyboard: ← → move it by 5 Hz (Shift: 50 Hz), A returns to automatic tuning.

Phase code

Waiting for a DCF77 signal.

One curve per second, the latest bold: a peak up is bit 0, down is bit 1. Peak / noise: how many times the peak stands above the correlation away from it.

Peak / noise
–
Agrees with AM
–
Scatter of the second start
–
Audio rate against DCF77
–

Readouts

Tone
–
Dip depth
–
Signal quality
–
Status
idle
Station
–
Second
–
Source
none

Decoder

Automatic locks onto the strongest steady tone. Moving the slider or clicking the spectrum switches to manual tuning.

Automatic reads all four codes and keeps the station whose minute decodes first. A fixed choice ignores the other codes.

Decoded minutes

  1. Nothing yet. Each complete minute is listed here with its parity checks.

Demo signal

Entered as German local time (CET or CEST). The demo starts 15 seconds before that minute.

Noise is measured in a 3 kHz bandwidth. Only the demo and audio files are played through the speakers.

Runs on your device. Uses your microphone or the sound of another tab or the screen; the audio is processed on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves your decoder and demo settings and the chosen microphone on this device.

Added · Updated : Added the WWVB amplitude code and JJY on 40 and 60 kHz, with demo signals for both

How to use it

Tune a receiver until the time signal is heard as a steady tone that dips once a second (JJY rises once a second instead), then bring its audio in as described under “Getting the audio in”. Play demo signal needs no radio and can send any of the four stations.

The page finds the tone, locks to the seconds, waits for the minute marker and then collects the bits. Expect the first time after one to two minutes and “verified” a minute later. Decoding continues while the page is in a background tab; only the drawing pauses.

Controls

Getting the audio in

There are four ways to get the signal in (read 60 kHz for MSF and WWVB, 40 or 60 kHz for JJY, where 77.5 kHz is written). Nothing is uploaded: all decoding happens in this tab.

  1. No radio needed — a web receiver in another tab. Open a public web-based SDR receiver in a second tab (universities and radio clubs run many of them; websdr.org lists receivers that are online now), tune it to 77.5 kHz as described below (the receiver must reach long wave; the one at the University of Twente in the Netherlands covers 0 to 29 MHz) and start its audio. Here, press Use computer audio, choose that tab in the sharing dialog and switch on sharing of the tab’s audio. Keep the receiver tab playing; this page can stay in the background.
  2. Your own receiver or SDR program on this computer. Press Use computer audio and share the program’s window or the entire screen together with system audio, or send the program’s output to a virtual audio cable and pick that cable after pressing Use microphone.
  3. A radio with a speaker. Hold it near the microphone and press Use microphone. It works, but room noise hurts weak signals; a cable from the headphone socket to the line or microphone input is better.
  4. A recording. Load a WAV or MP3 file with Open audio file.

Where and how to receive it

DCF77 is a long-wave time transmitter at Mainflingen, about 25 km south-east of Frankfurt am Main in Germany. It transmits on 77.5 kHz with 50 kW around the clock, and its time comes from the atomic clocks of PTB, Germany’s national metrology institute in Braunschweig. It can be received up to roughly 2000 km away, which covers central Europe. Reception is usually better at night.

MSF, the British time signal on 60 kHz, comes from Anthorn in Cumbria with an effective monopole radiated power of 15 kW and carries the UK time of the National Physical Laboratory.

WWVB, the time signal of NIST in the United States, comes from a site near Fort Collins, Colorado, on 60 kHz with an effective radiated power of 70 kW, and carries UTC. JJY, the Japanese time signal of NICT, has two stations with 50 kW antenna power each: Ohtakadoya-yama in Fukushima Prefecture on 40 kHz and Hagane-yama, on the border of Saga and Fukuoka Prefectures, on 60 kHz. It carries Japan Standard Time and is meant for the whole of Japan. From Europe neither can normally be received, so WWVB needs a receiver in North America and JJY one in or near Japan (see the questions at the end). MSF, WWVB and JJY from Hagane-yama share 60 kHz; the page tells them apart by their codes.

A software radio has to cover such low frequencies, by direct sampling or with an upconverter. The antenna matters most: a long wire, an active antenna, or a ferrite rod or loop turned for the strongest signal (a ferrite rod at right angles to the direction of the transmitter). Keep it away from switching power supplies, chargers and monitors, which are strong noise sources on long wave.

Use CW mode, or USB or LSB tuned beside the carrier so that a tone of 500–800 Hz results:

ftone = fcarrier − fdial (USB)    ftone = fdial − fcarrier (LSB)

USB tuned to 76.8 kHz (DCF77), 59.3 kHz (MSF, WWVB, or JJY on 60 kHz) or 39.3 kHz (JJY on 40 kHz) gives 700 Hz. Choose a narrow filter, roughly 50–300 Hz, around the tone. Switch automatic gain control off or to slow and keep the gain moderate, because a fast gain control flattens the dips; WWVB and JJY hold the carrier low for up to 0.8 s, so for them this matters even more. Switch noise reduction and the notch filter off. AM and FM modes lose the phase code of DCF77; a narrow filter still lets enough of it through, and a wider one, up to about 1.5 kHz, gives a higher and sharper peak.

The signal

DCF77

The carrier is amplitude-keyed. At the start of every second its amplitude falls to about 15 % for 100 ms (bit 0) or 200 ms (bit 1). Second 59 has no dip: that gap marks the minute. The keying occupies only a few tens of hertz. The carrier’s phase also carries a pseudo-random code, which this page reads too (below).

The 59 bits give the time of the minute that begins at the next marker:

BitsMeaning
0always 0
1–14weather and warning data, not decoded here
15–19call bit, time change announced, CEST, CET, leap second announced
20start of the time, always 1
21–28minute and its parity
29–35hour and its parity
36–58day, weekday, month, year and their parity

Numbers are binary-coded decimal with the lowest bit first, so the bits weigh 1, 2, 4, 8, 10, 20, 40 and 80. Each parity bit makes the number of ones in its group even.

DCF77 phase code

From 0.2 s after each second mark the carrier phase is shifted to one side or the other by a pseudo-random sequence of 512 chips, equally many each way, so the mean phase stays put. Bit 0 sends the sequence, bit 1 sends it inverted. Correlating the received phase with the sequence gives one sharp peak at its start; PTB added it for a more accurate time of arrival.

FeatureValue
Chips512, from a 9-stage shift register (maximal length), half of each sign
Chip120 carrier cycles: 77 500 / 120 = 645.83 Hz, 1.55 ms
Timingstarts 0.2 s after the second mark, lasts 793 ms
Phase shift±13° (Piester 2012), ±14.3° (PTB 2019)
Bitsseconds 0–9: 1, 10–14: 0, 15–58: the bits of the amplitude code

MSF

The carrier goes fully off: 500 ms at the start of second 00 (the minute marker), 100 ms at the start of every other second, then bit A (100–200 ms) and bit B (200–300 ms), each 1 when off.

BitsMeaning
01B–16BDUT1: each 1 in 01B–08B adds 0.1 s, in 09B–16B subtracts it
17A–24Ayear
25A–35Amonth, day
36A–38Aweekday, 0 = Sunday
39A–51Ahour, minute
52A–59Aalways 01111110
53Bsummer time changes within 61 minutes
54B–57Bodd parity of the four groups above
58Bsummer time in force

Numbers are BCD, highest bit first, for the UK time of the minute starting at the next marker. DUT1 is UT1, the time of the Earth’s rotation, minus UTC. A leap second shifts the code by a second, so the page reads it back from the marker.

WWVB

At the start of every UTC second the carrier drops by 17 dB, to about a seventh of its amplitude, and stays low for 0.2 s (bit 0), 0.5 s (bit 1) or 0.8 s (a marker). Markers fall on seconds 0, 9, 19, 29, 39, 49 and 59, so two markers in a row (59 and 0) start the minute. Unlike DCF77 and MSF, the frame gives the UTC of its own start, second 0, and it has no parity bits.

SecondsMeaning
1–8minute
12–18hour
22–33day of the year, 1 to 366 (a marker at 29 in between)
36–38sign of UT1 − UTC: 101 plus, 010 minus
40–43UT1 − UTC in tenths of a second
45–53last two digits of the year (a marker at 49 in between)
55leap year
56a leap second at the end of this month
57, 58daylight saving time: 00 standard time, 10 starts today, 11 in force, 01 ends today

Numbers are BCD, highest bit first; seconds 4, 10, 11, 14, 20, 21, 24, 34, 35, 44 and 54 are always 0. Bit 57 changes at 00:00 UTC on the day of a change and bit 58 24 hours later, so a clock in any US time zone knows the day and switches at 2 a.m. local time. Since 2012 WWVB also inverts the phase of its carrier to send a second code. A gap in the audio shifts the phase of the tone by an unknown amount, so a 180° inversion cannot be told apart reliably in the sound of a web receiver, which has such gaps; this page reads the amplitude code only.

JJY

JJY works the other way round: each second starts with the carrier rising from 10 % to full amplitude, and it stays up for 0.8 s (bit 0), 0.5 s (bit 1) or 0.2 s (a marker) before dropping back. The markers are on the same seconds as in WWVB, and the frame gives the Japan Standard Time (UTC+9) of its start. The fields of minute, hour and day of the year sit in the same seconds as in WWVB.

SecondsMeaning
1–8, 12–18minute and hour
22–33day of the year, 1 to 366
36, 37even parity of the hour and of the minute
38, 40reserved, now always 0
41–48last two digits of the year
50–52day of the week, 0 = Sunday
53, 54leap second at the end of this month: 00 none, 11 inserted, 10 removed

In minutes 15 and 45 seconds 40 to 48 carry the call sign JJY in Morse code and seconds 50 to 55 announce planned interruptions, so these minutes have no year, weekday or leap second bits; the page takes the year from the minute before. A leap second comes just before 09:00 JST on the 1st of a month, which is the end of the month in UTC: an inserted one adds a 0 at second 59 and moves the last marker to second 60.

How it works

The audio is reduced to about 4000 samples per second and a Fourier transform finds the tone. The samples are multiplied by a cosine and a sine at that frequency and averaged over 20 ms. This measures the tone’s amplitude in a band only a few tens of hertz wide, so noise beside it does not count.

Each amplitude sample is filed by its position within the second. After a few seconds this folded average shows one sharp step, the start of the second. It then tracks each falling edge, so audio clock errors do no harm. For every second it compares the mean amplitude 0–100 ms and 100–200 ms after that edge with the level later in the same second. Because these are ratios, they still work when the receiver’s gain control makes the dips shallow.

For MSF two more windows, 200–300 and 315–480 ms, are compared with the level after 520 ms. WWVB is read from the same second starts, each placed on its own falling edge: the level in 15–185, 215–485 and 515–785 ms is compared with 830–950 ms of the same second and of the second before, which WWVB never lowers. JJY rises at the start of each second, so the page folds the amplitude a second time, looks for the step up instead of the step down and follows the rising edges; it then compares 215–485, 515–785 and 830–970 ms with 30–170 ms, which is always at full level. These long windows are summed in 40 ms parts, so a jump of the audio inside one does not cancel the tone. Two markers in a row start a WWVB or JJY minute. On Automatic the page shows the station whose minute decodes first, and switches when it misses two minutes while another decodes.

For the phase code the tone is mixed down to zero frequency and a phase-locked loop follows the carrier. Once a second the remaining phase deviation is correlated with the 512 chips, each quarter of the code at its own start, so samples dropped inside a code cost little. The sign of the peak is the bit; USB and LSB turn it round, so the page learns which sign means 0 from seconds 0 to 14. An uncertain amplitude bit 15–58 is replaced by the phase bit when its peak is at least 5 times the noise, and a minute the amplitude decoder rejects is accepted from the phase code if it passes every check below.

On our test recording from a web receiver (4 October 2026) the second starts scattered by about ±4 µs from the phase code and by about ±0.65 ms from the amplitude edge. That is scatter, not accuracy: the delay of the receiver and the browser stays unknown. A line through the peaks gives the audio rate against the carrier (about −1700 ppm on that recording) and counts the jumps where samples were lost.

A DCF77 minute is accepted only if the marker, bits 0 and 20, the zone bits, all three parities, the value ranges and the weekday fit. An MSF minute needs both markers, 01111110, the four parities, the ranges and the weekday; its unprotected bits 53B and 58B must fit the British summer time rule, and DUT1 is shown when read cleanly or repeated. A WWVB minute needs every marker and every unused 0 in its place, valid digits, a day that exists in that year, a UT1 sign of 101 or 010, and leap year and daylight saving bits that fit the date; a JJY minute needs the markers, the unused 0s, both parities and a weekday that fits the date. Most of these bits have no parity, so a WWVB or JJY minute with an uncertain bit is accepted only when it continues the last accepted minute or the next minute confirms it. A minute is “verified” when the following minute is exactly one minute later.

Things to try

Frequently asked questions

Why is the decoded time slightly late?

The receiver program and the browser buffer the sound, often for a few tenths of a second. The page cannot measure that delay, so it is part of the difference shown against your computer clock. The phase code makes the start of each second sharper, but it cannot see that delay either.

Why was a minute rejected?

One misread bit breaks a parity check. The clock keeps running from the last good minute.

Can it decode other time stations?

DCF77, MSF, WWVB (its amplitude code) and JJY only. Other long-wave time stations use other codes.

Which web receivers reach 77.5, 60 and 40 kHz?

Those that cover long wave: on websdr.org the band filter LF/MF lists them. The Twente receiver above reaches DCF77 and MSF. On 14 November 2026 the list also had two receivers in the United States whose range starts at 0 Hz, one near Washington, DC and one near Los Angeles, so 60 kHz is within their range; we have not checked how well WWVB comes in on them. We found none in Japan on websdr.org, so JJY needs your own receiver in or near Japan, or a recording.

Sources