Skip to content
Swizztool

Unix Timestamp Converter

Convert seconds and milliseconds Unix Epoch timestamps into UTC, ISO 8601, and local date strings, and convert dates to Epoch.

Current Unix time

—

Unit

Pick a date and time in your local timezone. The timestamp updates to match.

Converted

How to use Unix Timestamp Converter

  1. Enter a Unix timestamp in seconds or milliseconds, or click Current Timestamp.
  2. Review the converted ISO 8601, UTC, and local time strings.
  3. Copy formatted timestamps.

About Unix Timestamp Converter

Convert Unix timestamps to readable dates and back. Paste seconds or milliseconds to see the date in your local time, UTC, and ISO 8601, or pick a date to get its timestamp. The current Unix time updates live.

Related tools: Universal Unit Converter, PX to REM Converter, HEX to CMYK Converter, Number Base Converter

Seconds or milliseconds

A Unix timestamp counts time since 1 January 1970 UTC. Most servers and databases use seconds (10 digits today), while JavaScript and many APIs use milliseconds (13 digits). The converter switches to milliseconds automatically when you paste a 13-digit value, so you do not get a date thousands of years in the future.

Time zones

A timestamp is the same moment everywhere; only the displayed time changes with the time zone. Your local time uses your computer's time zone, while UTC and ISO 8601 are the same for everyone, which makes them best for logs and sharing.

Negative timestamps represent dates before 1970.

Common uses

Reading logs
Turn timestamps in log files into readable times.
Debugging APIs
Check created_at and expires_at values.
Database work
Convert dates for queries that store epoch time.
Scheduling
Get the timestamp for a future date.

Questions about Unix Timestamp Converter

What is a Unix Timestamp?
A Unix timestamp is the number of seconds elapsed since January 1, 1970 00:00:00 UTC.
What is the year 2038 problem?
Old systems that store timestamps as 32-bit numbers overflow on 19 January 2038. Modern systems use 64-bit numbers and are not affected.
Does it handle leap seconds?
Unix time ignores leap seconds by design, so every day has exactly 86,400 seconds.
How do I get the current timestamp in code?
In JavaScript use Math.floor(Date.now() / 1000), in Python int(time.time()), and in a Unix shell date +%s.
Is the timestamp in UTC?
Yes. Unix timestamps always count from midnight UTC on 1 January 1970, regardless of time zone.

Comments

Questions, ideas, or a bug in Unix Timestamp Converter? Let us know.