Skip to content
convertifyy

Unix timestamp converter – Free & Private

Convert Unix timestamps to dates and back, in your time zone, UTC and ISO 8601.

Current Unix time (live)

—

Unit
Code: get the current timestamp
JavaScript   Math.floor(Date.now() / 1000)
Python       int(time.time())
PHP          time()
Java         Instant.now().getEpochSecond()
Go           time.Now().Unix()
SQL (MySQL)  UNIX_TIMESTAMP()
Bash         date +%s
Your data never leaves this browserHow it works

Short answer

To convert a Unix timestamp, paste it in the box. You see the date in your time zone, in UTC and in ISO 8601, and seconds or milliseconds are detected automatically. Type a date to get the Unix time back. This epoch converter also shows the current timestamp live. Nothing leaves your browser.

How to use Unix timestamp converter

  1. Step 1

    Paste your text, open a file, or press “Sample”.

  2. Step 2

    Pick the options you need. The result updates as you type.

  3. Step 3

    Copy the result or download it.

Settings explained

Unit
Auto treats 13-digit numbers as milliseconds and 10-digit numbers as seconds.

Keyboard shortcuts

Paste into the input
Ctrl V
Format now (JSON)
Ctrl Enter
Search all tools
Ctrl K

Tips for better results

  • A 10-digit number is seconds; 13 digits is milliseconds.
  • Store times in UTC and convert to local time only when showing them.
  • Timestamps don’t include a time zone; the same number is the same moment everywhere.

What it does

  • Seconds or ms, auto-detected
  • Your time zone, UTC and ISO 8601
  • Live current timestamp
  • Code examples

Questions

What is epoch time?

Unix or epoch time counts the seconds since 1 January 1970 at 00:00 UTC. It is how most computers store dates.

Seconds or milliseconds?

10 digits is seconds (e.g. 1794744000). 13 digits is milliseconds, used by JavaScript.

Year 2038 problem?

Old systems store the time in a 32-bit number that runs out on 19 January 2038. Modern systems use 64 bits and are fine.

How do I convert a timestamp to a date in Excel?

For seconds use =A1/86400+DATE(1970,1,1) and format the cell as a date. For milliseconds divide by 86400000 instead.

Related tools

Runs in your browser · Updated · Report a problem