Skip to content

Decode a Google ei timestamp

Decode the URL-safe Base64 value used by a Google ei parameter and recover its embedded little-endian UNIX time.

Install in Serialize

What it can do

  • Decode a URL-safe Base64 parameter
  • Select its timestamp bytes
  • Reverse little-endian byte order
  • Render the resulting UNIX time

How the recipe works

From Base64

Decode the URL-safe transport alphabet.

To Hex

Render raw bytes as hexadecimal.

Take bytes

Keep the first four encoded timestamp bytes.

Swap endianness

Reverse their little-endian order.

From Base

Convert hexadecimal to a decimal integer.

From UNIX Timestamp

Interpret the integer as UNIX seconds.

Demonstration

Sample input

gACSZQAAAAA

Expected result

Mon 1 January 2024 00:00:00 UTC

When to use it

  • URL timeline analysis
  • Digital-forensics exercises
  • Learning endianness and timestamp encodings

Adapt it

Extract the ei query value with Parse URI or a regular expression before this chain when starting from a complete URL.

Source and verification

Adapted from mattnotmax CyberChef recipes. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close