How to Install WordPress Locally on Windows or Mac (2026)
I’ve always been nervous about trying new plugins on a live blog, because one bad plugin can break the site or cause database errors. In 2006 the answer was to set up XAMPP on Windows XP or MAMP on a Mac by hand. In 2026 you can install WordPress locally in a couple of minutes with free one-click tools. Here are the best options and how to use them.

Quick answer: The easiest way to install WordPress locally is a free app like Local (Windows, Mac, Linux) or WordPress Studio (Windows, Mac). Install the app, click to create a new site, choose a site name and admin login, and WordPress opens in your browser on your own computer. For a quick throwaway test, WordPress Playground runs WordPress entirely in your browser with nothing to install.
Table of Contents
Why run WordPress on your computer
- Test themes, plugins and updates without risking your live site.
- Build or redesign a site offline, then move it to your host.
- Learn WordPress and PHP for free, with no hosting needed.
Best tools to install WordPress locally
- Local: free, one-click sites, easy PHP version switching, SSL, and push/pull to WP Engine and Flywheel hosting.
- WordPress Studio: free, lightweight app from Automattic built on WordPress Playground; quick site creation and sharing previews.
- XAMPP: classic Apache, MariaDB and PHP bundle. More manual but teaches you how a server works.
- MAMP: the Mac (and Windows) equivalent of XAMPP, with a free version.
- WordPress Playground: runs WordPress in your browser tab. Great for quick tests; sites aren’t permanent unless you save them.
- Developers can also use Docker or wp-env for repeatable setups.
How to install WordPress locally with Local
- Download and install Local from localwp.com.
- Click + Create a new site and enter a name.
- Choose the Preferred environment (or Custom to pick PHP and MySQL versions).
- Set your WordPress admin username, password and email.
- Click WP Admin to log in, or Open site to view it.
How to install WordPress locally with XAMPP
- Install XAMPP and start Apache and MySQL from the control panel.
- Open http://localhost/phpmyadmin and create a new database.
- Download WordPress from wordpress.org and unzip it into the xampp/htdocs folder.
- Visit http://localhost/wordpress and run the installer with database user root and an empty password (XAMPP’s default).
Move a local site live
Use a migration plugin such as All-in-One WP Migration or Duplicator, or Local’s built-in push to supported hosts. Remember to update the site URL and permalinks after moving. Before going live, check our guide to speeding up your site.
FAQ
Is it free to install WordPress locally?
Yes. WordPress and all the tools above have free versions.
Can other people see my local WordPress site?
No, it only runs on your computer. Local offers Live Links and Studio offers preview sites if you need to share.
Which is better, Local or XAMPP?
Local is easier and faster for most people. XAMPP suits those who want to learn the server setup.
Get our free weekly email: new tech guides and tools, no spam.
New and updated tech guides, a free tool worth bookmarking and one useful pick, once a week. No spam, unsubscribe anytime.
One email a week. Unsubscribe anytime. See our privacy policy.







Great tutorial
Thanks for posting
thanks for sharing. You made some good points there. its easy to learn.
your website is great. a lot information can i get from here :)
Hello to you. I’d like to share with your audience a video tutorial I created for installing WordPress (although using wamp).
http://www.youtube.com/watch?v=biQWyBcYSX4
Regards
Shane
I’ve noticed that some plugins won’t work on a locally installed wordpress. Does anyone know why that might be?
Hi Unimax,
this link has all the details on setting up your local wordpress blog including setting up database and importing your online blog data to your local system
https://www.venukb.com/2006/06/26/setup-your-local-wordpress-blog/
i’ve install and play wp locally. how to copy to webserver ? i know upload all file in /wordpress/ directory using filezilla.
the problem is how about database ?
maybe u can create another tutorial about this.