All Tools View Categories About Contact Privacy

Log Timestamp Format Converter

Normalize Unix, ISO 8601 and custom log timestamps in one pass.

Runs entirely in your browser — timestamps never leave this page.

About Log Timestamp Format Converter

Logs rarely agree on how to write a timestamp — some services emit Unix epoch seconds, others milliseconds, others ISO 8601, and legacy apps use DD/MM/YYYY hh:mm:ss. Before you can sort by time, join events across services or feed a timeline tool, every line must speak the same format. Converting them by hand is exactly the kind of slow, error-prone work that trips up incident response when minutes matter.

Log Timestamp Format Converter normalizes an entire log file in one click. It auto-detects each line — Unix seconds, Unix milliseconds, ISO 8601 with or without an offset, or common space- and slash-separated patterns — then rewrites everything into your chosen output format. A custom token pattern (YYYY, MM, DD, HH, mm, ss, SSS, A for AM/PM, Z for offset) handles apps that use a private layout on either the input or output side, and a UTC / browser-local toggle keeps the timezone story straight so a 9am log entry does not silently become 2pm or 4am somewhere downstream.

Detection runs per line, not per file, so a single paste that mixes epoch seconds from one service with ISO strings from another still normalizes correctly in one pass — exactly the situation you hit when stitching together logs from several systems during an incident. Lines that cannot be parsed are counted and reported rather than silently skipped, so a format mismatch shows up immediately instead of quietly dropping rows from your timeline.

The result appears as a clean input → output list ready to copy, download as plain text, or print to PDF for a postmortem. Everything runs in the browser — nothing is uploaded, so you can paste real production timestamps with confidence even mid-incident.

Features

  • Per-line auto-detect: unix seconds, unix milliseconds and ISO 8601 recognized automatically, independent of neighboring lines.
  • Custom token patterns: YYYY, MM, DD, HH, mm, ss, SSS, A and Z for private formats, usable on both input and output.
  • Common layout support: space-, dash- and slash-separated timestamps parse out of the box via a fallback pattern list.
  • 12-hour and 24-hour output: hh/A tokens produce correct AM/PM formatting, including the midnight and noon edge cases.
  • UTC or browser-local: choose how offset-less timestamps are interpreted and displayed.
  • Explicit offsets respected: a timestamp that already carries Z or +HH:mm is always treated as absolute time, regardless of the timezone toggle.
  • Multiple outputs: unix seconds, unix milliseconds, ISO 8601 or a custom pattern.
  • Whole-file batch: one line per timestamp, all converted in a single pass.
  • Skipped-line stats: see exactly how many lines did not parse, so nothing goes missing silently.
  • Copy / download / print: export the converted list as text.
  • Local processing: nothing is uploaded.

How to Use

  1. Paste or sample. Put one timestamp per line, or click Load sample to try mixed formats including a 10-digit epoch, an ISO string, a slashed date and an explicit UTC offset.
  2. Choose the input. Auto-detect handles most files; pick Unix seconds, milliseconds, ISO 8601 or Custom (with your own token pattern) when you need to force it.
  3. Set the timezone. Choose UTC for absolute times or Browser local for your own timezone; this only affects timestamps that do not already carry an explicit offset.
  4. Pick the output. Unix seconds, milliseconds, ISO 8601, or a custom token pattern of your own.
  5. Convert. The reformatted list and the skip stats appear together, so you can spot a wrong input format immediately.
  6. Copy, download or print. Export the result as plain text or a PDF for a report or postmortem.

Examples

Example 1 — Feed a timeline tool. Your UI shows 1755307205 (Unix seconds). Convert to ISO 8601 and every event lands on a readable, sortable timeline in one pass.

Example 2 — Sign an API signature. A service expects Unix milliseconds. Convert an ISO 8601 log timestamp like 2026-08-16T09:00:01Z to its 13-digit form for the request signature.

Example 3 — Normalize a mixed file. One incident log contains seconds, milliseconds and ISO lines mixed together across three services. Auto-detect converts all of them to one format so you can sort the whole file chronologically without manual triage.

Example 4 — 12-hour to 24-hour. An app logs 16/08/2026 09:00:01 PM. Using pattern DD/MM/YYYY hh:mm:ss A as the input and HH:mm:ss as the output gives clean 24-hour times, correctly rolling PM hours past noon and midnight to 00:00.

Example 5 — Private format export. A legacy system wants YYYYMMDDTHHmmssSSSZ. Reformat standard ISO timestamps into that compact schema for ingest without touching the source logs.

Example 6 — Explicit offsets stay correct. A log line reads 2026-08-16T09:00:01+05:30. Whether the timezone toggle is set to UTC or Browser local, the explicit +05:30 offset is honored and the timestamp converts to the same absolute instant.

Benefits

  • One-click normalization: stop hand-converting timestamp columns during an incident.
  • Mixed files handled: detection runs per line, not per file, so multi-service logs normalize together.
  • Custom layouts covered: private token patterns parse and write almost any shape, on input or output.
  • Timezone-aware: UTC and local both behave predictably, and explicit offsets always win.
  • Nothing silently dropped: unparsed lines are counted and reported, not discarded.
  • Portable output: copy, download or print the converted list.
  • Private by design: logs never leave the browser.

Frequently Asked Questions

Which timestamp formats are recognized?
Unix epoch seconds (10-digit), Unix milliseconds (13-digit), ISO 8601 like 2026-08-16T09:00:01Z, and common space-separated and slashed formats such as 2026-08-16 09:00:01 or 16/08/2026 09:00:01. Auto-detect picks the right one per line, and the source selector lets you force a format for mixed files.
How does auto-detect tell seconds from milliseconds?
By digit length. A bare number with 10 digits is treated as epoch seconds, and a bare number with 13 digits as epoch milliseconds. If your log uses a different length, choose the exact input format manually.
Which tokens can I use in a custom pattern?
YYYY, YY, MM, M, DD, D, HH, H (24-hour), hh, h (12-hour), mm, m, ss, s, SSS, A (AM/PM) and Z (timezone offset). Example patterns: YYYY-MM-DD HH:mm:ss, DD/MM/YYYY hh:mm A, or YYYYMMDDTHHmmssSSSZ.
How is UTC versus browser-local handled?
The timezone option decides how pattern fields without an explicit offset are read and written. UTC treats the fields as Co-ordinated Universal Time; Browser local uses your machine’s timezone. Timestamps that already carry a Z or +HH:mm offset are always interpreted as absolute time.
What happens to lines I cannot parse?
They are counted as skipped and shown in the stats, with every successfully converted line still produced. Check your input format selector or custom pattern if a whole file comes back as skipped.
Can I convert a whole log file at once?
Yes. Paste as many lines as you like — each line is detected and converted independently, so one smaill file with mixed formats normalizes in a single pass. Use the row stats to confirm the count.
Is my data uploaded?
No. Conversion happens entirely in your browser; nothing is sent to a server, stored or logged. Paste real production timestamps with confidence.