Free engineering tool · 01
GPS Time Converter
Convert UTC to GPS week and seconds of week, or convert GPS time back to UTC. Check historical leap seconds and resolve legacy 10-bit week numbers.
Convert a timestamp
Calculations run in your browser.TRY A KNOWN TIMESTAMP
Conversion result
Ready- GPS − UTC
- —
- 10-bit GPS week
- —
- Rollover era
- —
- GPS day (Sunday = 0)
- —
- UTC day of year
- —
- GPS seconds since epoch
- —
- GPS calendar (continuous time scale)
- —
Enter a timestamp, then select Convert.
Understanding the GPS time result
GPS week and seconds of week
The full week counts from the GPS epoch, 1980-01-06 00:00:00. Each week contains 604800 GPS seconds. Seconds of week start at zero at the beginning of Sunday in GPS time.
GPS time versus UTC
GPS time runs continuously. UTC includes leap seconds, so the offset depends on the date. From 2017-01-01, GPS is 18 seconds ahead of UTC within the announced leap-second coverage.
Legacy 10-bit week numbers
A 10-bit week repeats after 1024 weeks. A value from 0 to 1023 needs a rollover era to identify one full week. This tool requires that era instead of choosing a date automatically.
How UTC to GPS conversion works
For an ordinary UTC timestamp, subtract the GPS epoch using a calendar timestamp that excludes leap seconds, then add the historical GPS−UTC offset. Divide the resulting elapsed GPS seconds into a full week and the remaining seconds.
GPS seconds = UTC POSIX seconds − epoch POSIX seconds + GPS−UTC offset Full GPS week = floor(GPS seconds / 604800) Seconds of week = GPS seconds − Full GPS week × 604800
At an inserted leap second, the tool handles 23:59:60 as its own interval. It remains distinct from both 23:59:59 and the following midnight. For the reverse conversion, the GPS timestamp selects the appropriate offset and UTC interval.
Reference conversion examples
| UTC timestamp | Full week | Seconds of week | GPS−UTC |
|---|---|---|---|
| 1980-01-06 00:00:00.000 | 0 | 0.000 | 0 s |
| 2016-12-31 23:59:60.000 | 1930 | 17.000 | 17 s |
| 2017-01-01 00:00:00.000 | 1930 | 18.000 | 18 s |
| 2019-04-06 23:59:42.000 | 2048 | 0.000 | 18 s |
At full week 2048, the legacy 10-bit week is 0 and the rollover era is 2.
GPS time conversion questions
What should I enter if my log only contains a week from 0 to 1023?
Check the receiver or file documentation. If the value is a legacy 10-bit week, choose “10-bit week + rollover era” and enter the era established from the capture date. A week number by itself cannot resolve the repeated eras.
Is the GPS−UTC difference always 18 seconds?
No. Historical dates use earlier offsets. This version includes the historical leap-second table and the December 2026 no-leap announcement in IERS Bulletin C 72. Dates from 2027-01-01 are marked provisional and use the last known offset until the table is updated.
Does the converter use my computer’s time zone?
Entered calendar values are interpreted as UTC. “Use current UTC” reads the device clock and presents it in UTC. No local time-zone offset is applied to an entered UTC timestamp.
Why does a GPS week start before midnight UTC?
The boundary follows GPS time. With an 18-second GPS−UTC offset, Sunday 00:00:00 GPS corresponds to Saturday 23:59:42 UTC. The 2019 rollover example demonstrates this boundary.
Can this result be used as a precision timing measurement?
The result converts calendar representations to millisecond resolution. It does not measure clock accuracy or apply broadcast UTC polynomial corrections. Timing validation requires a defined reference, measurement chain and acceptance criterion.
Use the timestamp in your GNSS test workflow
Scenario configuration
Identify the intended scenario epoch before matching a simulator configuration to receiver logs and test records.
Explore GNSS simulators →Record and replay
Check time labels when comparing captured RF datasets, replay sessions and receiver output.
Explore recording and playback →HIL integration
Define the time scale, epoch and timestamp format alongside the trajectory fields in an external interface.
Explore GNSS HIL testing →Need a repeatable GNSS test setup?
Share the receiver, target signals, scenario date and timing requirement. Our team can review the appropriate simulation or recording workflow.