Timestamp converter
A timestamp in, a date out, in your own timezone and in UTC, with a relative phrasing so the number means something.
Seconds and milliseconds are told apart by the size of the number, and you can override the guess.
A timestamp, into a date
A date, into a timestamp
Read as UTC, which is what you mean when you type a time.
Questions
- Is what I paste sent anywhere?
- No. Every tool in this kit runs in the page itself. There is no server here that receives what you paste, and you can check it in your browser's network tab: using a tool produces no request carrying your input at all.
- How does it know whether my number is seconds or milliseconds?
- By how many digits it has. Ten digits is seconds until roughly the year 2286 and thirteen is milliseconds over the same span, so the size is a reliable signal. It says which way it read your number, and you can set it by hand.
- Which timezone is the local time in?
- Whichever one your browser is set to, named above the row so there is no doubt. Typing a date is read the same way, because a time you type is a time where you are.
- Does it handle dates before 1970?
- Yes. A negative timestamp is a time before the epoch and converts normally.
The other tools here
- JSON formatter, format, minify and validate
- Base64 encoder, encode and decode, text or file
- URL encoder, encode and decode, two rules
- UUID generator, version 4, one to a hundred
- Hash generator, sha-256, sha-1 and md5 at once
- JWT decoder, header, payload and expiry
- Regex tester, live matches, groups and flags
- Text diff, compare two blocks, by line or word
- Cron explainer, a schedule, in plain english
- Colour converter, hex, rgb, hsl, and a contrast check
- Markdown preview, live preview, and copy the html
- JSON to CSV, an array of objects into a spreadsheet