Free tool
Supabase connection string builder
Build a correct Supabase connection string — pooler or direct, with the right host, port, and a properly URL-encoded password. Everything runs in your browser; nothing is sent anywhere.
Transaction pooler (recommended · port 6543)
postgresql://postgres.[PROJECT-REF]:[YOUR-PASSWORD]@aws-0-eu-west-1.pooler.supabase.com:6543/postgresBest for serverless / short-lived connections (Edge Functions, migrations). IPv4-compatible — works where the direct host doesn't. Does not support prepared statements or session-level features.
Session pooler (port 5432)
postgresql://postgres.[PROJECT-REF]:[YOUR-PASSWORD]@aws-0-eu-west-1.pooler.supabase.com:5432/postgresPersistent sessions, prepared statements, LISTEN/NOTIFY. Also IPv4-compatible via the pooler host.
Direct connection (port 5432)
postgresql://postgres:[YOUR-PASSWORD]@db.[PROJECT-REF].supabase.co:5432/postgresTalks straight to Postgres. The db.<ref>.supabase.co host is IPv6-only — unreachable from IPv4-only networks (many CI runners and Edge runtimes). Prefer the pooler there.
Not sure which host prefix (aws-0 / aws-1) is yours? Supabase shows the exact pooler host under Settings → Database → Connection pooling. Learn more in the pooler glossary entry.