Skip to content

Epoch Converter

Runs in your browser

Paste a Unix timestamp to read it as a real date, or pick a date to get the timestamp back. Seconds, milliseconds and microseconds are detected for you.

Current epoch

-

Starting the clock…

Paste a timestamp to see the date it stands for

Reads the date above, and shows the pasted timestamp as a local time.

Pick a date and time to get its timestamp

How this one works

A Unix timestamp counts the time since 1 January 1970 UTC. Systems disagree on the unit: databases and log lines usually use seconds, JavaScript and Java use milliseconds, and Postgres and tracing tools often use microseconds. Paste a number and the unit is guessed from its size: a present-day value has 10 digits in seconds, 13 in milliseconds and 16 in microseconds, with the picker there to overrule it.

Going the other way, the date you pick is a wall-clock reading, so it only becomes an instant once a zone is attached. That is done with your browser's own time zone database, which is why daylight saving comes out right, including the hour that never happens in spring and the one that happens twice in autumn.

Questions

Is my timestamp sent anywhere?

No. The conversion is JavaScript running in this tab, using the time zone data already in your browser. Nothing is uploaded, and the page makes no network requests at all.

Why does the same number give a different date on another site?

Almost always the unit. 1789000000 read as seconds is 2026; read as milliseconds it is 1970. Set the unit explicitly rather than relying on detection when the value is unusual.

Do negative timestamps work?

Yes. A negative value counts backwards from 1970, so -14182940 is the Apollo 11 landing in July 1969. Dates run from the year -271821 to 275760, the range a JavaScript date can hold.

What about leap seconds?

Unix time ignores them, and so does this page. Every day is treated as exactly 86,400 seconds, which is why a timestamp never lands on a leap second, the same assumption your database and programming language make.

Keyboard shortcuts

Global

  • Show this shortcuts dialogShift?
  • Toggle light / dark themeCtrlShiftL
  • Close dialogsEsc

Formatter & Validator

  • Format JSONCtrlEnter
  • Minify JSONCtrlShiftM
  • Copy outputCtrlShiftC
  • Download output as .jsonCtrlShiftS
  • Clear input and outputCtrlShiftX

Tree Viewer

  • Focus the search box/
  • Expand all nodesCtrlShiftE
  • Collapse all nodesCtrlShiftR

Diff

  • Swap document A and BCtrlShiftS

Time & date tools

  • Use the current time (Epoch Converter)CtrlEnter
  • Copy the main resultCtrlShiftC
  • Clear the inputCtrlShiftX

PHP Unserialize & Serialize

  • Convert an input over 2 MBCtrlEnter
  • Copy outputCtrlShiftC
  • Download outputCtrlShiftS
  • Clear input and outputCtrlShiftX

Keys & IDs

  • Generate a new token or UUID batchCtrlEnter
  • Copy the resultCtrlShiftC

JSON tools

JSON FormatterPretty-print or minify
JSON ValidatorCheck strict JSON validity
JSON Tree ViewerBrowse JSON as a tree
JSON DiffCompare two documents
JSON Path FinderExplore JSONPath expressions
JSON to CSVFlatten JSON into rows
CSV to JSONTurn rows back into objects
PHP UnserializeSerialized PHP to JSON
PHP SerializeJSON to serialized PHP

JWT tools

JWT DecoderClaims, signature and expiry
JWT VerifierWith a secret, PEM key or JWKS
JWT Expiry Checkeriat, nbf and exp in local time
JWT GeneratorBuild a signed test token
Base64URL EncoderEncode or decode a segment

Time & date tools

Epoch ConverterTimestamps to real dates
Cron Expression ExplainerCron in plain English
Time Zone ConverterOne moment, many cities
Duration CalculatorDate maths and durations

Keys & IDs

Password GeneratorSecure random secrets
UUID Generatorv1, v4, v5 or v7 UUIDs

Code formatters

SQL FormatterBeautify or minify SQL
HTML FormatterBeautify or minify HTML
CSS FormatterBeautify or minify CSS
JavaScript FormatterBeautify or minify JS
PHP FormatterBeautify PHP code
Markdown to HTMLConvert with a live preview

AI tools

Token CounterTokens for every model
Prompt Secret ScrubberHide keys and personal data

Pages

JSON toolsFormat, validate, compare and convert JSON.
JWT toolsDecode, verify and generate JSON Web Tokens.
Time & date toolsConvert timestamps, read cron, compare zones.
Keys & IDsGenerate secure tokens, passwords and UUIDs.
Code formattersFormat SQL, HTML, CSS, JavaScript and PHP code.
AI toolsCount tokens and hide secrets before you prompt.
HomePopular tools and categories
All categoriesBrowse tools by category
AboutWhat ToolJar is and why
PrivacyWhat is and is not collected

Theme

Switch to light theme
Switch to dark theme