> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hedera.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hedera Testnet Faucet

> Get testnet HBAR using the Hedera Portal or faucet: fund an EVM wallet address instantly or create a portal account with a stable Account ID and keys.

There are two ways to get testnet HBAR:

* **Hedera Portal**: [create a portal account](https://portal.hedera.com) for a fully provisioned testnet account with a stable Account ID, private key, and access to all developer tools. No EVM wallet required.
* **Faucet**: paste any EVM wallet address to instantly fund an account. No portal account needed.

The faucet auto-creates a Hedera account when you enter an EVM wallet address for the first time.

<Steps>
  <Step title="Step 1: Visit the faucet">
    To use the faucet, head to the [faucet](https://portal.hedera.com/faucet) landing page.

    <Card title="VISIT HEDERA FAUCET" href="https://portal.hedera.com/faucet" icon="faucet-drip" horizontal />
  </Step>

  <Step title="Step 2: Fund your testnet account">
    * Enter your EVM wallet address in the **Enter Wallet Address** field and
    * Click the **RECEIVE 100 TESTNET HBAR** button to initiate an [auto account creation](/learn/core-concepts/accounts/auto-account-creation) flow that creates and funds a new testnet account

    <Warning>
      #### ⚠️ **Important**

      When you use an EVM wallet address for the first time, [**Auto Account Creation**](/learn/core-concepts/accounts/auto-account-creation) kicks in to establish a new Hedera account linked to your EVM address.

      This process creates a **hollow account**, an account with an Account ID and your EVM address set as its alias, but no signing key on record yet. Hollow accounts can receive HBAR and tokens, but cannot transfer funds or modify account properties until completed.

      To complete the account, use it as the **fee payer** in a transaction and sign with the ECDSA private key corresponding to your EVM address. Once completed, it behaves like any regular Hedera account.

      For a full explanation of the Hedera account model, hollow accounts, and accounts without an ECDSA key, see [Account Model for EVM Developers](/evm/development/accounts).
    </Warning>

    <Frame>
      <img src="https://mintcdn.com/hedera-0c6e0218/h9jV0CleNbqsy3H_/images/getting-started-evm-developers/hedera-testnet-faucet/hedera-testnet-faucet-1.png?fit=max&auto=format&n=h9jV0CleNbqsy3H_&q=85&s=f19606156a8e0988e12628425cdaee0c" width="2466" height="1810" data-path="images/getting-started-evm-developers/hedera-testnet-faucet/hedera-testnet-faucet-1.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/hedera-0c6e0218/h9jV0CleNbqsy3H_/images/getting-started-evm-developers/hedera-testnet-faucet/hedera-testnet-faucet-2.png?fit=max&auto=format&n=h9jV0CleNbqsy3H_&q=85&s=049c8c4958047df894d7e331cd59f598" width="2542" height="1924" data-path="images/getting-started-evm-developers/hedera-testnet-faucet/hedera-testnet-faucet-2.png" />
    </Frame>
  </Step>
</Steps>

## Environment Variable Setup (Optional)

This section is for developers who want to set up their environment for production use. If you plan to use Hardhat, Foundry, or other development frameworks, complete this step to configure your environment variable. Skip if you're just getting started.

<Accordion title="Setup .env file ">
  If you plan to use Hardhat, Foundry, or other development frameworks, you'll want to set up environment variables:

  1. **Export your private key from MetaMask:**

     1. Click the **three dots menu** → **Account details** → **Show private key**
     2. Copy the private key (64-character hex string)

       <Frame>
         <img src="https://mintcdn.com/hedera-0c6e0218/h9jV0CleNbqsy3H_/images/getting-started-evm-developers/hedera-testnet-faucet/hedera-testnet-faucet-3.png?fit=max&auto=format&n=h9jV0CleNbqsy3H_&q=85&s=2df3e13a6dba647081b5e48c6661ae5a" width="810" height="1018" data-path="images/getting-started-evm-developers/hedera-testnet-faucet/hedera-testnet-faucet-3.png" />
       </Frame>

  <Check>
    For detailed instructions on exporting your private key, refer to [this how-to
    guide](https://support.metamask.io/managing-my-wallet/secret-recovery-phrase-and-private-keys/how-to-export-an-accounts-private-key/).
    Keep your private keys secure. Anyone with access to them can control your
    wallet and any funds.
  </Check>

  2. **Create a `.env` file** in your project directory with your account credentials

  ```
  # private key exported from MetaMask
  OPERATOR_KEY=0xc89f760d43832...

  # new testnet account ID
  OPERATOR_ID=0.0.1234

  # Hedera testnet RPC endpoint
  RPC_URL=https://testnet.hashio.io/api
  ```

  <Danger>
    #### Warning

    Storing private keys in a `.env` file is not considered best practice. There is always a risk of accidentally committing and pushing to a public GitHub repo and exposing your keys. Make it a habit to add `.env` to your `.gitignore` file as a precautionary measure.

    We **highly advise against** using a private key with mainnet funds.
  </Danger>
</Accordion>

<Tip>
  **Building locally?** [Solo](https://solo.hiero.org/docs/) lets you run a full Hedera network on your own machine — no faucet, no resets, no throttles. It works with MetaMask, Hardhat, and Foundry out of the box. See the [Solo quickstart](https://solo.hiero.org/docs/simple-solo-setup/quickstart/) or [Using Solo with EVM tools](https://solo.hiero.org/docs/using-solo/using-solo-with-evm-tools/) to get started.
</Tip>

## Next Step

* [Deploy a Smart Contract Using Remix](/evm/quickstart/deploy-with-remix)
* [Deploy your First Contract with Contract Builder](/evm/quickstart/deploy-with-contract-builder)
