Unix Timestamp to Date Converter Tool

Convert a Unix timestamp to a date.

📲 Unix Timestamp App

Download the iPhone & iPad app for fun themes and colors.

Download on the App Store

Unix Timestamp Parsing Code Examples

Parse and convert Unix timestamps to human-readable dates in various programming languages. Understanding UTC time is essential for accurate conversions.

JavaScript (seconds timestamp)

new Date(1640995200 * 1000)

JavaScript (milliseconds timestamp)

new Date(1640995200000)

Python (seconds timestamp)

import datetime
datetime.fromtimestamp(1640995200)

Python (milliseconds timestamp)

import datetime
datetime.fromtimestamp(1640995200000 / 1000)

Java (seconds timestamp)

new Date(1640995200L * 1000)

Java (milliseconds timestamp)

new Date(1640995200000L)

More programming language examples

Converting Unix Timestamps

Unix timestamp conversion is essential for working with time data across different systems and programming languages. Converting timestamps allows you to display meaningful dates and times to users.

When converting Unix timestamps, it's important to understand whether your timestamp is in seconds or milliseconds format. Timestamps with 10 digits are typically in seconds, while 13-digit timestamps are usually in milliseconds. Learn more about different time units used in computing.

The converter automatically detects the format, but you can also manually specify whether your input is in seconds or milliseconds using the format buttons above. All conversions are based on UTC time for consistency.

← Back home

Made by Andy Moloney

© unixtime.io