Epoch / Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and vice versa. Supports seconds and milliseconds with timezone display.
Enter a timestamp or date and click Convert
How to Use
- Enter a Unix timestamp (seconds or milliseconds) and click Convert to see the date.
- Or enter a human-readable date string and click Convert to get the timestamp.
- Click Now to use the current time.
- Copy any result value with the Copy button.
What Is Epoch Time?
The Unix epoch is January 1, 1970, 00:00:00 UTC. All Unix timestamps measure seconds (or milliseconds) from this point. This system provides a universal, timezone-independent way to represent time that works across all programming languages and operating systems.
Common Timestamp Formats
- Unix seconds — 10 digits, used in most backend systems and databases (e.g., 1709913600)
- Unix milliseconds — 13 digits, used in JavaScript's Date.now() and Java (e.g., 1709913600000)
- ISO 8601 — Standard string format (e.g., 2026-03-08T12:00:00Z)
- RFC 2822 — Email date format (e.g., Sat, 08 Mar 2026 12:00:00 +0000)
The Year 2038 Problem
Systems storing Unix timestamps as 32-bit signed integers will overflow on January 19, 2038 at 03:14:07 UTC, wrapping to a negative value representing December 1901. Most modern systems have migrated to 64-bit timestamps, which won't overflow for 292 billion years. This tool uses JavaScript's 64-bit number representation, so it handles dates well beyond 2038.
Related Tools
Decode JWTs with timestamp claims using the JWT Decoder. Generate hashes for cache busting with the Hash Generator. Format JSON API responses with the JSON Formatter. Generate time-based UUIDs (v7) with the UUID Generator. Convert timestamps in SQL queries. Encode timestamps for URLs with the URL Encoder.
Frequently Asked Questions
- What is a Unix timestamp?
- A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. It is widely used in programming to represent points in time as a single integer.
- What is the difference between seconds and milliseconds?
- Unix timestamps in seconds are 10 digits (e.g., 1709913600). Timestamps in milliseconds are 13 digits (e.g., 1709913600000). This tool automatically detects which format you entered.
- What date formats can I enter?
- You can enter dates in ISO 8601 format (2026-03-08T12:00:00Z), standard formats (March 8, 2026), or most common date string formats. The tool uses the browser's Date parser.
- Is my data safe?
- Yes. All conversions happen entirely in your browser. No data is sent to any server.
Code Examples
Learn how to use this tool programmatically in your favorite language.
Use this tool from AI agents.
The CodeTidy MCP Server lets Claude, Cursor, and other AI agents
use this tool and 46 others directly. One command: npx @codetidy/mcp