⚡ WordPress · Client-side · No data sent to server

DB Table Prefix Generator

Generate a random, valid WordPress $table_prefix and copy a ready-to-paste line for wp-config.php. Runs entirely in your browser.

Length
letters and digits between wp and the trailing _
wp_a7x_
Paste this into wp-config.php
$table_prefix = 'wp_a7x_';
Copied
Set this at install time. The prefix goes in wp-config.php before you run the WordPress installer. Changing it on a live site means renaming every database table and updating values inside wp_options and wp_usermeta, so plan that carefully. Randomness comes from crypto.getRandomValues in your browser.

About the DB Table Prefix Generator

The DB Table Prefix Generator builds a random, valid WordPress $table_prefix and gives you the exact line to paste into wp-config.php. A non-default prefix keeps your table names off the standard wp_ pattern that automated attacks assume. Every prefix starts with wp_, uses lowercase letters and digits in the middle, and ends with the required underscore. Generation runs entirely in your browser using crypto.getRandomValues, so nothing is sent to a server.

How it works

  1. Pick how many random characters you want in the middle of the prefix.
  2. Read the generated prefix, for example wp_a7x_, or click Regenerate for a new one.
  3. Copy the prefix on its own, or copy the full $table_prefix = 'wp_a7x_'; line.
  4. Paste the line into wp-config.php before you run the WordPress installer.

Features

  • Random prefixes generated client-side with crypto.getRandomValues.
  • Always valid: starts with a letter after wp_, lowercase letters and digits only, ends with an underscore.
  • Adjustable length for the random middle section.
  • One-click copy for both the bare prefix and the ready-to-paste wp-config.php line.
  • No accounts, no uploads, no tracking.

Frequently asked questions

Where do I put the prefix?

In wp-config.php, on the line $table_prefix = 'wp_a7x_';. Set it before running the WordPress install so every table is created with that prefix from the start.

Can I change the prefix on a site that is already running?

Yes, but it takes work. You must rename every database table to the new prefix, then update the stored prefix values inside the wp_options and wp_usermeta tables. Back up your database first. Setting it at install time avoids all of this.

Why not just keep wp_?

The default wp_ is predictable, so some automated SQL injection scripts target table names built on it. A random prefix removes that easy assumption. It is one small step, not a full security plan.

What characters are allowed in a prefix?

Letters, digits, and underscores. It must start with a letter or underscore and end with an underscore. This tool keeps the leading wp_, uses lowercase letters and digits in the middle, and always adds the trailing underscore.

Is the prefix random and private?

Yes. It is generated in your browser with crypto.getRandomValues, which is a cryptographically strong source. Nothing is sent to a server, so each prefix stays on your machine.