x86-64 VA Calculator 4-Level Paging

Does exactly what it says. Entirely vibecoded by Gemini in two minutes.
I only wrote the C++ code and made some minor edits (like this note).

[63..48] Sign Ext | [47..39] PML4 | [38..30] PDP | [29..21] PD | [20..12] PT | [11..0] Offset

Quick Address Presets

Click any preset to auto-populate both modes

64-bit Virtual Address (VA)

Lower Canonical
Unsigned Decimal
0
Canonical Sign Extension
Bit 47 = 0 (Upper 16 bits: 0x0000)
FIELD BREAKDOWN INDEX (HEX / DEC)
PML4 Index (Bits 47..39) 0x000 (0)
PDP Index (Bits 38..30) 0x000 (0)
PD Index (Bits 29..21) 0x000 (0)
PT Index (Bits 20..12) 0x000 (0)
Page Offset (Bits 11..0) 0x000 (0)

Page Table Level Indices

9 bits [0..511 / 0x1FF]
9 bits [0..511 / 0x1FF]
9 bits [0..511 / 0x1FF]
9 bits [0..511 / 0x1FF]
12 bits [0..4095 / 0xFFF]

64-bit Address Bitwise Grid Breakdown

SIGN EXTENSION Bits 63..48 (16 Bits)
PML4 Bits 47..39 (9 Bits)
PDP Bits 38..30 (9 Bits)
PD Bits 29..21 (9 Bits)
PT Bits 20..12 (9 Bits)
OFF 11..0
Copied to clipboard!