🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Get Website ID and Store ID from Admin in Magento 2

By Sanjay JethvaUpdated on May 21, 2025 3 min read

After you have configured multi-website or set up multistore in Magento 2, you require to test or debug the functionality in relation to the muti website or multi-stores before going live. To speed up the process, you need to have the website ID and store ID.

Magento 2 stores have several extensions that require store ID while configuration. A Magento newbie may spend too much time to find the website ID or store ID of a particular website or store.

Today, I have come up with the simple method to get website ID and store ID from admin in Magento 2, it would be easier for you while debugging or testing and configuring Magento 2 extensions that require ID.

Stepwise Method to Get Store ID from Admin in Magento 2

1. Log in to the Magento 2 admin panel.

2. Navigate to Content > Design > Configuration

3. Select the Store for which require the store ID and click “Edit”

4. The store ID is displayed in the URL.

find the ID of Website or Store in Magento 2

Stepwise Method to Get Website ID from Admin in Magento 2

1. Log in to Magento 2 admin panel.

2. Navigate to Content > Design > Configuration

3. Select the Website for which you require to find the website ID and click “Edit”

4. The website ID is displayed in the URL.

get website ID and store ID from admin in Magento 2

That’s it. After completing with the above process if you are working with multi store environment you will often be in a need to get current store ID in Magento 2, so just try it.

Do consider sharing this post with Magento Community via social media.

Thank you.

Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.