🌐 Mercator → Equirectangular Auto-Align

Upload an Equirectangular base map and a Mercator-projected overlay. The overlay is first mathematically de-projected to Equirectangular using the Mercator formulas from chrisjones.id.au/Projection, then you can drag / scale / rotate it slightly to fine-tune alignment on the base map.

Formulas used

Forward Mercator (Snyder): x = R(λ − λ₀), y = R·ln(tan(π/4 + φ/2))
Inverse Mercator (page): λ = x/R + λ₀, φ = arctan(sinh(y/R))

The base map's own projection (equirectangular) is linear, so for every base pixel we get λ, φ directly. We then use the forward relation above on φ to compute exactly which row of the Mercator overlay it corresponds to (columns map linearly to λ). This removes the north/south Mercator stretching automatically — no manual point-matching needed.

Step 1: Upload images (click or drag & drop)

Base Map (Equirectangular)

Change these only if your base map does not cover the full globe linearly.

Overlay Image (Mercator)

Set these to the actual latitude/longitude bounds your Mercator overlay image covers.

⌨️ On any bound field: ↑/↓ = ±0.01  |  Shift + ↑/↓ = ±1  |  Enter = run conversion

Step 2: De-project overlay to Equirectangular

Upload both images to begin.

Step 3: Slide / scale / rotate to fine-tune alignment

50%
1.000
0.0°
Offset: 0.0px, 0.0px | Scale: 1.000 | Rotation: 0.0°