Timestamp Converter
Convert between Unix timestamps and human-readable dates.
Timestamp → Date
Date → Timestamp
About this tool
Convert Unix timestamps to human-readable date formats and vice versa. Support for various date formats, timezones, and instant conversion. Essential for developers working with APIs and databases.
Variants
Unix to Date
Convert a Unix timestamp to a human-readable date. Auto-detects seconds vs milliseconds, shows local, UTC, and ISO 8601 formats.
Date to Unix
Convert a date/time into a Unix timestamp. Supports ISO 8601, RFC 2822, and browser datetime-local input. Returns seconds and milliseconds.
Millisecond Timestamp
Convert between Unix millisecond timestamps (13 digits) and human-readable dates. The default format for JavaScript Date.now() and modern JSON APIs.
Features
- Convert Unix timestamps to human-readable dates
- Convert dates to Unix timestamp format
- Support for multiple date formats and timezones
- View the current timestamp in real-time
How to Use
- Enter a Unix timestamp or select a date
- View the converted result in the other format
- Choose your preferred date format and timezone
- Copy the converted value to clipboard
Frequently Asked Questions
Are Unix timestamps in seconds or milliseconds?
Classic Unix is seconds since 1970-01-01 UTC; JavaScript's Date.now() is milliseconds. If your value is around 10 digits, it's seconds; around 13 digits, it's milliseconds. The converter auto-detects by magnitude — a value like 1745000000 is assumed to be seconds.
Why does the same timestamp show a different date in my app?
Timezones. A timestamp is a single instant, but how it displays depends on the viewer's timezone. "1745000000" is 2025-04-18 17:33 UTC but 13:33 in New York and 10:33 in San Francisco. Always display in the user's local zone unless your app needs UTC explicitly.
What happens after the 2038 problem?
32-bit signed Unix timestamps overflow on 2038-01-19 at 03:14:07 UTC. Most modern systems (Linux, JS, Postgres BIGINT) already use 64-bit timestamps and aren't affected. If you're still running 32-bit embedded C code, that's the year to upgrade.
Can I convert dates before 1970?
Yes — Unix timestamps go negative for dates before the epoch. -1000000000 is 1938-04-24. JavaScript's Date handles these, but some databases (older MySQL TIMESTAMP, some APIs) reject negatives. Use DATETIME or ISO-8601 strings for historical dates.
Is ISO 8601 or Unix timestamp a better database format?
Unix for fast range queries, simpler indexing, and timezone-neutral storage. ISO 8601 for readability in logs and CSV exports. Modern Postgres's timestamptz stores as UTC internally but displays with timezone — the best of both worlds if your database supports it.