Unix Timestamp Converter
Convert between Unix timestamps and human-readable date-times online, with automatic detection of second, millisecond, microsecond and nanosecond precision, worldwide time zones including daylight saving handling, Windows FILETIME and C# Ticks conversion, and quick date-range shortcuts.
FreeOnline Tool
Loading…
How to Use
- The "Current timestamp" panel shows the live second and millisecond timestamps; click either one to copy it.
- In "Timestamp to date-time", paste a timestamp of any length and the tool detects seconds, milliseconds, microseconds or nanoseconds from the digit count. The target zone defaults to Beijing time and the dropdown is searchable (type a city name or a zone ID such as Shanghai). The date-time for that zone appears instantly, with daylight saving handled automatically.
- In "Date-time to timestamp", enter a date-time (2026-07-06 23:17:21 or 2026-07-06T23:17:21, seconds optional), pick its zone, and read back the Unix second and millisecond timestamps along with Windows FILETIME and C# Ticks.
- The "FILETIME / C# Ticks" panel converts Windows FILETIME or C# DateTime.Ticks into a Unix timestamp, and a Unix timestamp back into either format.
- Under "Quick date ranges", choose a time zone and click Today, Yesterday, This month or Last month to get the start and end timestamps of that range.
- The time zone table at the bottom shows the current time and UTC offset for common regions, so you can see at a glance whether a place is on daylight saving time.
Features
- Automatic precision detection: 10 digits for seconds, 13 for milliseconds, 16 for microseconds, 19 for nanoseconds.
- Searchable time zone dropdown; type a city name or zone ID to filter, with Beijing time as the default target zone.
- Conversion is backed by the IANA time zone database, so daylight saving transitions are applied correctly, including regions with unusual rules such as Santiago and parts of Australia.
- Multiple output formats: Unix seconds, Unix milliseconds, ISO 8601, yyyy-MM-dd HH:mm:ss(.SSS), UTC string and UTC offset.
- Windows FILETIME converted to and from Unix timestamps.
- C# / .NET DateTime.Ticks converted to and from Unix timestamps.
- Quick date ranges: one click gives the start and end timestamps of today, yesterday, this month or last month in the chosen zone.
- A live ticking timestamp that doubles as a reference clock.
- Time zone cheat sheet showing current local times and UTC offsets side by side.
- Click any result to copy it to the clipboard.
Use Cases
Scheduling across time zones
Check with the cheat sheet and the date-to-timestamp panel whether a colleague's region is already on daylight saving time, so a meeting or deployment is not an hour out.
Reading FILETIME values in Windows logs
Paste a FILETIME number from an event log, an NTFS file attribute or an API response and read it as a Unix timestamp and a normal date.
Working with .NET DateTime.Ticks
Turn Ticks values returned by a C# API into Unix timestamps so systems written in other languages can be tested against them.
Picking date ranges for reports
Grab the start and end timestamps of today, yesterday, this month or last month for use as query conditions in data scripts.
FAQ
What do the different timestamp lengths mean?
10 digits are seconds (for example 1757217599), 13 digits milliseconds, 16 digits microseconds and 19 digits nanoseconds. The tool decides from the digit count; most programming work uses 10-digit seconds or 13-digit milliseconds.
Why is a converted time sometimes one hour off?
That region was in a daylight saving transition on that date. The tool uses the browser's IANA time zone database to decide whether a specific date falls in daylight saving time instead of assuming a fixed UTC offset, so the same zone can have different offsets in different months.
Which special formats are supported?
Besides Unix timestamps and date-times, it converts Windows FILETIME (100-nanosecond intervals from 1601-01-01) and C# / .NET DateTime.Ticks (100-nanosecond intervals from 0001-01-01) to and from Unix timestamps.
Which time zone do the quick date ranges use?
They use the zone selected in that panel's dropdown, which defaults to the local zone detected from your browser and can be switched to any other zone.