Convert Unix timestamps
Convert Unix time to a date and back, in UTC and your own timezone at once, with seconds and milliseconds. Nothing is uploaded.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in A timestamp, or a date
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back The other one, in UTC and yours
What it does
Paste a timestamp and get the date; paste a date and get the timestamp. Both are shown in UTC and in your own zone side by side, because nearly every bug this gets used on is a confusion between the two.
This page does the work itself. Your data is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
Seconds or milliseconds?
Unix time is defined in seconds, and a current one is ten digits. JavaScript's Date.now() returns milliseconds, thirteen digits. Feeding one to something expecting the other lands you in 1970 or in the year 55000, so this page warns when the digit count disagrees with the unit you picked.
Why does my date come out an hour off?
Almost always daylight saving. A timestamp is an absolute instant with no zone; the offset applied when it is displayed depends on the zone and the date. That is why UTC and your local time are shown together rather than one at a time.
What is the 2038 problem?
Systems storing Unix time in a signed 32-bit integer run out on 19 January 2038, when the count exceeds 2,147,483,647. Anything using 64-bit time, which is nearly everything modern, is fine for longer than the sun has left.
More developer tools
-
Developer
Text ⇄ binary
Translate text to binary, hex or octal and back again, in UTF-8.
-
Developer
Base64
Encode text or a file to Base64 and decode it back, with URL-safe output and data URIs.
-
Developer
SHA hashes
Compute SHA-1, SHA-256, SHA-384 and SHA-512 for text or a file, using your browser's own crypto engine.
-
Developer
URL encode
Percent-encode a URL or a single value and decode it back, with the encodeURI and encodeURIComponent distinction made explicit.
-
Developer
UUID
Generate v4 random or v7 time-ordered UUIDs in bulk, from your browser's cryptographic random source.
-
Developer
JWT decoder
Read a JWT's header and payload, with expiry checked against the clock.
-
Developer
Regex tester
Test a JavaScript regular expression against your own text, see every match and capture group, and read the pattern back in plain English.
-
Developer
Cron expressions
Turn a cron expression into plain English and see its next five run times, in your own timezone and in UTC.
-
Developer
cURL converter
Paste a curl command and get it back as JavaScript fetch, Python requests and a raw HTTP request.