Guides · Utiltown
Unix Timestamp Converter: Seconds vs Milliseconds
A Unix timestamp is a single integer representing an instant in time: seconds since 00:00:00 UTC on 1 January 1970 (the Unix epoch). It is time-zone naive and unambiguous, which makes it ideal for databases, logs, APIs, and distributed systems. Converting between timestamps and human-readable dates is a daily task for developers, and getting seconds versus milliseconds wrong is a common source of bugs.
This guide explains what a Unix timestamp is, how it relates to UTC and time zones, why seconds and milliseconds are not interchangeable, how to handle dates before 1970 and the year 2038 limit, and how to use Utiltown\'s timestamp converter locally in your browser.
Core Concepts
- Epoch: 1 January 1970 00:00:00 UTC. A timestamp of 0 is that exact moment; positive values are after it, negative values before it.
- Seconds vs milliseconds: classic Unix time is in
seconds. JavaScript\'s
Date.now()returns milliseconds. When passing timestamps between systems, confirm the unit or dates will be off by a factor of 1000. - UTC only: timestamps have no time zone. To show a wall-clock time in a specific zone, apply the offset after converting to a UTC date.
- Edge cases: dates before 1970 are negative timestamps. The year 2038 problem affects 32-bit signed timestamps; modern 64-bit systems are safe.
How to Use This Site\'s Tool
- Open Timestamp Converter.
- Enter a Unix timestamp (seconds or milliseconds) to see the human-readable date and time.
- Or enter a date and time to get the corresponding Unix timestamp.
- Confirm the unit (seconds vs milliseconds) matches your target system.
- Copy the result for use in code, logs, or API calls.
Bottom Line
Convert timestamps and dates without mental math. Use Timestamp Converter locally, double-check seconds versus milliseconds, and avoid off-by-1000 bugs in your code.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since the Unix epoch: 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is a single integer that represents a point in time unambiguously across time zones.
Seconds or milliseconds?
Unix timestamps are classically in seconds. JavaScript uses milliseconds since the epoch, so when converting between systems you must multiply or divide by 1000. Mixing them produces dates off by a factor of a thousand.
Are timestamps time-zone aware?
No. A raw Unix timestamp is UTC-based and time-zone naive. It represents an absolute instant; converting it to a local wall-clock time requires applying a time zone offset.
Is my input uploaded?
No. This site's timestamp converter runs entirely in the browser. Your input is converted locally and never sent to a server.
What about dates before 1970?
Those are negative timestamps. Most systems handle them fine, but some older or 32-bit implementations may overflow. The year 2038 problem affects 32-bit signed timestamps; modern 64-bit systems are safe.