Timestamp Converter
Unix timestamp and epoch time converter. Convert timestamps to UTC, ISO 8601, and local time formats. Supports seconds, milliseconds, and date strings.
Enter a Unix timestamp or date string above
Supports Unix seconds, Unix milliseconds, ISO 8601, and most date formats
Features
Everything you need, nothing you don’t.
- Auto-detects Unix seconds, Unix milliseconds, ISO 8601, and most date string formats
- Outputs UTC, local timezone, ISO 8601, Unix seconds and milliseconds simultaneously
- Shows relative time - "3 hours ago", "in 2 days" - updated live every 10 seconds
- One-click copy for every output format
- "Now" button inserts the current Unix timestamp instantly
- Keyboard shortcut: ⌘N to insert the current timestamp
Related Tools
Frequently asked questions
What is a Unix timestamp?
A Unix timestamp (also called Epoch time or POSIX time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, excluding leap seconds. It is the most common way to represent a point in time in programming, databases, and APIs because it is timezone-independent and easy to compare and calculate with.
What is the difference between Unix seconds and Unix milliseconds?
Unix seconds count elapsed seconds since the Epoch and typically have 10 digits (e.g. 1718878800). Unix milliseconds count elapsed milliseconds and typically have 13 digits (e.g. 1718878800000). JavaScript's Date.now() returns milliseconds; most server-side languages and databases default to seconds. This tool auto-detects which you are entering: numbers with more than 10 digits are treated as milliseconds.
How do I convert a Unix timestamp to a human-readable date?
Paste or type the Unix timestamp into the input field above. The tool instantly displays the equivalent UTC date, your local timezone date, ISO 8601 string, and relative time. You can copy any format with the copy button on the right.
How do I convert a date back to a Unix timestamp?
Type a date string such as 2024-06-20, Jun 20 2024 11:00:00, or 2024-06-20T11:00:00Z into the input. The tool parses it and shows the corresponding Unix seconds and Unix milliseconds so you can copy them directly.
What date string formats are supported?
The converter accepts any format that browsers parse natively. This includes ISO 8601 (2024-06-20T11:00:00Z), RFC 2822 (Thu, 20 Jun 2024 11:00:00 +0000), short formats like Jun 20 2024 and 2024-06-20. If the input looks like a pure integer, it is treated as a Unix timestamp; otherwise it is parsed as a date string.
Is there a keyboard shortcut to get the current timestamp?
Yes. Press ⌘N (Mac) or Ctrl+N (Windows / Linux) to instantly insert the current Unix timestamp in seconds. You can also click the "Now" button in the toolbar.
Does this tool work offline?
Yes. All conversion logic runs entirely in your browser using built-in JavaScript Date APIs. No data is sent to any server.
How do I generate a Discord timestamp?
Discord uses Unix timestamps formatted as <t:TIMESTAMP:STYLE>, where the timestamp is in seconds. Use the tool above to find the Unix seconds value for your target date and time, then wrap it in Discord's format. Supported styles: :t (short time), :T (long time), :d (short date), :D (long date), :f (short date/time - default), :F (long date/time), :R (relative). Example: <t:1718878800:R> renders as "3 hours ago" relative to the viewer's local time.
Timestamps on the Command Line
Working with Unix timestamps and date formats on Linux, macOS, and in internet protocols.
Linux Timestamp Converter - date Command
On Linux (GNU date) and macOS (BSD date), the date command converts between Unix timestamps and readable dates:
# Convert a Unix timestamp to a readable date date -d @1718878800 # Linux (GNU date) date -r 1718878800 # macOS (BSD date) # Get the current Unix timestamp date +%s # Convert a date string to a Unix timestamp (Linux) date -d "2024-06-20 11:00:00 UTC" +%s # Output in ISO 8601 / RFC 3339 format (Linux) date -d @1718878800 --iso-8601=seconds
RFC 3339 Timestamp Format
RFC 3339 is a profile of ISO 8601 used in internet protocols - including HTTP headers, Atom feeds, JWT claims, and many REST APIs. An RFC 3339 timestamp looks like 2024-06-20T11:00:00Z for UTC or 2024-06-20T13:00:00+02:00 with a UTC offset. This converter accepts any RFC 3339 string as input and outputs the equivalent Unix timestamp, UTC date, and local time.