Unix Timestamp Converter
Convert Unix timestamps to date and time, and date/time values to Unix timestamp format.
All conversions are performed directly in your browser. Your data is not sent to the server.
Unix Timestamp Converter features
Convert Unix time values into different date and time formats quickly, securely and for free.
Seconds support
Automatically detects 10-digit Unix timestamps.
Milliseconds support
Converts 13-digit JavaScript timestamps.
UTC conversion
Shows the UTC equivalent of date and time values.
Local time
Produces the local result according to your browser's time zone.
ISO 8601 output
Provides the standard date output used in APIs and integrations.
Copy and download
Copy the results to the clipboard or download them as a TXT file.
What is a Unix Timestamp?
A Unix timestamp is a time representation that expresses a specific date and time as a single numeric value. The calculation is based on the number of seconds elapsed since 00:00:00 UTC on 1 January 1970. This starting point is called the “Unix Epoch”, or simply “Epoch”.
Because Unix timestamps provide a time-zone-independent reference, they are widely used in server applications, API services, databases, log records, authentication systems and distributed software architectures.
The same Unix timestamp can be displayed with different local time equivalents in Istanbul, London or New York. Nevertheless, the actual moment in time it expresses does not change. The time zone only affects how the value is shown to the user.
What is Epoch Time?
Epoch Time refers to the same basic concept as a Unix timestamp. It shows the time elapsed since the start of 1 January 1970 UTC in seconds or milliseconds.
Why are Unix timestamps used?
Numeric timestamp values are practical for comparison, sorting, storage and data exchange between systems. They reduce the language, region and format differences that can occur with textual date formats.
How to use the Unix Timestamp Converter?
Enter the value
Type the timestamp or date/time value into the relevant field.
Select the unit
Use the seconds, milliseconds or auto-detect option.
Convert
Generate the UTC and local results with the convert button.
Use the result
Copy the results or download them as a file.
Difference between Seconds and Milliseconds timestamps
| Feature | Seconds Timestamp | Milliseconds Timestamp |
|---|---|---|
| Typical length | 10 digits | 13 digits |
| Base unit | Seconds | Milliseconds |
| Common use | Linux, backend, JWT, API | JavaScript, browser applications |
| Example | 1718531400 |
1718531400000 |
| Conversion | Multiply by 1000 to convert to milliseconds | Divide by 1000 to convert to seconds |
Where are Unix timestamps used?
REST API
Enables date and duration information to be exchanged between systems in a standard format.
JWT and OAuth
Used for token start, expiry and validity times.
Linux Systems
Represents the time information of files, processes and system events.
Logging Systems
Makes it easier to order and compare application events.
Databases
Can be used to store or process date fields numerically.
Docker and Microservices
Provides a shared time reference between distributed services.
Unix Timestamp code examples
JavaScript
// Milisaniye
const milliseconds = Date.now();
// Saniye
const seconds = Math.floor(Date.now() / 1000);
Python
import time
from datetime import datetime, timezone
seconds = int(time.time())
current_utc = datetime.now(timezone.utc)
C#
long seconds = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
long milliseconds = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
Java
long seconds = Instant.now().getEpochSecond();
long milliseconds = Instant.now().toEpochMilli();
SQL Server
SELECT DATEDIFF_BIG(
SECOND,
'1970-01-01T00:00:00',
SYSUTCDATETIME()
);
PostgreSQL
SELECT EXTRACT(EPOCH FROM NOW())::bigint;