Aller au contenu principal
Hosting

wp-config.php Generator

Build a correct wp-config.php with database settings and fresh salts.

<?php
/** Database settings */
define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'wp_user' );
define( 'DB_PASSWORD', 'your-db-password' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8mb4' );
define( 'DB_COLLATE', '' );

/** Authentication unique keys and salts */
define( 'AUTH_KEY', '3zWlVVJrsPinUUzkCVleHlUAqXyQEQgjIJryf3ShDsnHYy0maSdp2ILlwAvBOfWY' );
define( 'SECURE_AUTH_KEY', '8PpmuNeLJPqdl4yCvVgcd9ud6dazEeNzVpuI1iwJsDbV8V7aEuyshuqNTFKv5xaf' );
define( 'LOGGED_IN_KEY', '6B2U5VgZ8fBszjjJg0wDNM021urjufGIgxC0MV9rpP3fWIZr1lcNEBxppnO0q4uw' );
define( 'NONCE_KEY', 'BqDzJ9GG2J2Wnae6zC89bB6Khqbidp56vEm7W3mNebIj63VDowIBeDabBy97QGWG' );
define( 'AUTH_SALT', 'NE72pC7C6n3uU93Pu0EeeImCzLstNvPGEJoaZrTDJHlONdzAf1RNWArwA3m5uFLD' );
define( 'SECURE_AUTH_SALT', 'IUwmeUYpXMJRhuOFdfdVECZada0uQCicSwcf59EsDhfLl3rZviGa5aCuLGiMHKA7' );
define( 'LOGGED_IN_SALT', 'mlvfaV4b7IroQizga7Cfcdb6tfI3j55T8chgn9F3DgDdJQgWYu9YwhMJnbgUrw2X' );
define( 'NONCE_SALT', 'R8gpQaN5l67SZxv1wqCG6SR0DujCmpRwAoLnvuE7CRbQ2kIYMyWEGzhfcN6TX7en' );

/** Table prefix */
$table_prefix = 'wp_';

/** Debug (disable on production) */
define( 'WP_DEBUG', false );

if ( ! defined( 'ABSPATH' ) ) {
  define( 'ABSPATH', __DIR__ . '/' );
}
require_once ABSPATH . 'wp-settings.php';

Generated in your browser. Do not paste real passwords into a page you do not trust — this one keeps them client-side.

About this tool

Free wp-config.php generator. Produce a ready-to-use WordPress configuration file with your database credentials, table prefix and freshly generated authentication salts.

Frequently asked questions

Is it safe to put my database password here?

This tool runs entirely in your browser, so the value never leaves your device. Still, treat any generated file as a secret.

What table prefix should I use?

Avoid the default wp_ if you can — a unique prefix makes some automated attacks harder. Use letters, numbers and underscores.

Why is WP_DEBUG false?

Debug output on a live site can leak paths and data to visitors. Enable it only on a staging copy.

Need more than a tool?

HostingSwift runs the servers too — VPS, web hosting, email, DNS and streaming, with a free tier to start.