MongoDB connection string builder & parser
Build a mongodb:// or mongodb+srv:// connection string from fields, or paste one to parse it back.
mongodb:// connection string
mongodb://app@localhost:27017/mydb?retryWrites=true
Runs in your browser. Nothing you type is sent anywhere.
How this works
- Standard: mongodb://[user:password@]host1[:port1][,host2[:port2]...][/db][?options] — lists every replica set member, default port 27017. docs ↗
- mongodb+srv:// takes a single hostname, uses DNS SRV records to discover the real hosts, never takes a port, and implies TLS.
- Reserved characters in the user and password are percent-encoded both ways.
Do this against your live database in Tablyne.
MongoDB GUI →FAQ
Which scheme should I use, mongodb:// or mongodb+srv://? +
mongodb+srv:// is recommended when your provider (like Atlas) publishes DNS SRV records — it lets the driver discover and rotate hosts without you editing the connection string.
Do I need to list every host for mongodb+srv://? +
No — a single hostname is enough; the driver resolves the full seed list via DNS.
Is TLS required for mongodb+srv://? +
It's implied by default; the standard mongodb:// scheme requires setting tls=true explicitly if you want encryption.