Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates in your local timezone.
How It Works
The Unix Timestamp Converter translates between Unix epoch times — the number of seconds (or milliseconds) elapsed since 1970-01-01 00:00:00 UTC — and human-readable dates in both your local time zone and UTC. Type a numeric timestamp into the field and the tool auto-detects whether you mean seconds or milliseconds based on the magnitude (numbers under about 10^11 are interpreted as seconds; larger values are treated as milliseconds), then renders the corresponding ISO 8601 string, the local-time representation, and the UTC representation side by side. Going the other way, pick a date and time from the picker (or paste an ISO 8601 string) to get the equivalent epoch values in both seconds and milliseconds, ready to drop into a database query, an API request, or a log filter. All conversions use the JavaScript Date object, which models milliseconds since the epoch and respects the browser’s IANA time zone for local-time display. Nothing is sent to a server, so timestamps embedded in audit logs or production debug data stay private.
Use Cases
- Reading timestamps from server logs or database records
- Debugging epoch values in API responses
- Converting a known date into the number to use in a query
- Checking how many seconds remain until a deadline
Frequently Asked Questions
- Why does my timestamp look like a date in 1970?
- You probably have milliseconds being interpreted as seconds, or vice versa. Check the magnitude: 10-digit numbers are typically seconds, 13-digit are milliseconds.
- What time zone is the date in?
- Two are shown: your browser's local time zone (resolved via the IANA database your OS provides) and UTC. The underlying timestamp is always UTC by definition.
- Does the converter handle dates before 1970?
- Yes — Unix timestamps can be negative for dates before the epoch. JavaScript's Date supports a range of about ±100 million days around 1970.
- What about leap seconds?
- Like nearly all software, this tool follows POSIX time and ignores leap seconds — every day is exactly 86400 seconds.
- Is my input sent anywhere?
- No. All conversion happens locally using the JavaScript Date API in your browser.