wp-config.php Generator
Build a correct wp-config.php without copy-pasting from a 2014 blog post
Runs in your browser. Nothing is uploaded.
About the wp-config.php Generator
Generate a wp-config.php with the constants you actually need — debug logging, memory limits, file-edit lockdown, upload limits, table prefix, and fresh salts. Everything is generated in your browser; nothing is sent anywhere.
Not sure what a setting does or where it goes? Our wp-config.php guide explains each part of the file and how to edit it safely.
Related
Other tools you might need
WordPress WP_DEBUG Code Generator for wp-config.php
Turn on the debug log without breaking your live site
WordPress Max Upload Size Fixer for php.ini & .htaccess
Raise the upload limit — and get all three values consistent
WordPress .htaccess Generator
The rules WordPress needs, plus the hardening rules it does not ship with
FAQ
Questions
Is it safe to generate wp-config.php salts in a browser?
Yes. The salts are produced with crypto.getRandomValues(), the browser's cryptographically secure random number generator, and never leave your machine. For the record, WordPress's own api.wordpress.org salt endpoint is equally safe — it returns fresh random values over TLS. This is a convenience, not a security fix.
Why does this not ask for my database password?
Because you should not type a production database password into a web page, however trustworthy it claims to be. The generated file has a placeholder — fill it in locally, in your editor.
Can I change the table prefix on an existing site?
Not by editing wp-config.php alone. Changing $table_prefix on a live site requires renaming every table AND rewriting two rows in the options and usermeta tables. Change it on a fresh install, or leave it alone.