About Timestamp / Unix Timestamp Converter
Timestamp / Unix Timestamp Converter turns a Unix timestamp into a readable date, or a date string into a Unix timestamp, entirely in your browser. A Unix timestamp counts seconds (or milliseconds) since January 1, 1970 UTC — the "epoch" — and is how most databases, APIs, and log files store points in time internally. Everything runs locally using the browser's built-in Date APIs — nothing you paste is uploaded, logged, or stored anywhere.
How to use it
- 1
Paste a timestamp or a date
Paste a Unix timestamp in seconds or milliseconds, or a date string (like "2024-01-15" or "Jan 15, 2024"), into the input pane.
- 2
Click Convert
The tool auto-detects which direction to convert: a numeric input is treated as a Unix timestamp and converted to a date, anything else is parsed as a date and converted to a timestamp.
- 3
Use Now for the current time
Click Now to fill the input with the current Unix timestamp (in seconds) and convert it immediately.
What it does
- Auto-detects whether the input is a Unix timestamp or a date string — no separate encode/decode step
- Auto-detects seconds vs. milliseconds precision based on digit count
- Shows the result as seconds, milliseconds, ISO 8601, UTC, local time, and a human-readable relative time
- Supports timestamps before 1970 (negative values) and any date string the browser's Date parser accepts
FAQ
How does the tool know if my timestamp is in seconds or milliseconds?
It counts digits: a value with 10 or fewer digits is treated as seconds (covers dates up to the year 2286), and a value with 11–13 digits is treated as milliseconds. Current Unix time is a 10-digit number of seconds or a 13-digit number of milliseconds, so this distinction is unambiguous in practice.
Why does converting a date string give an error?
The tool relies on the browser's built-in Date parser, which understands common formats like ISO 8601 (2024-01-15T10:00:00Z), RFC 2822 (Mon, 15 Jan 2024 10:00:00 GMT), and typical written dates (Jan 15, 2024). Ambiguous or locale-specific formats (like 01/02/2024, which could mean January 2nd or February 1st) may not parse as expected — use an unambiguous format if you hit an error.
What does the Relative time in the output mean?
It shows how far the converted date is from the current moment in plain language, like "3 hours ago" or "in 2 days", using your browser's locale.
Does this tool send my data anywhere?
No. Parsing and formatting both happen locally in your browser using the built-in Date and Intl APIs. Your input is never sent over the network.