About this connection string builder
Build correct connection strings for SQL Server, PostgreSQL (Npgsql), MySQL, SQLite, MongoDB and Redis (StackExchange.Redis) without looking up the keyword names. You also get a ready-to-paste appsettings.json section and an environment variable using the ConnectionStrings__Name convention used by ASP.NET Core.
How to use the Connection String Builder
- Choose the database type.
- Enter host, port, database and credentials.
- Copy the connection string, appsettings.json or environment variable.
Example
Server=localhost;Database=MyDb;User Id=sa;Password=…;TrustServerCertificate=True;
Frequently asked questions
Why do I need TrustServerCertificate=True for SQL Server?
Microsoft.Data.SqlClient 4+ encrypts by default. Local servers often use a self-signed certificate, so you must trust it or install a valid certificate.
How do I override a connection string in Docker or Azure?
Set an environment variable named ConnectionStrings__DefaultConnection. ASP.NET Core maps the double underscore to the : separator.
Is my data safe?
Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.
Is it free?
Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.