> ## 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 free testnet HBAR by entering your EVM wallet address or Hedera account ID in the Hedera web faucet. No developer portal account required to fund a testnet account.

The Hedera faucet allows you to quickly create and fund a testnet account without creating a developer portal account. The faucet flow auto-creates an account when you enter an EVM wallet address to receive testnet HBAR.

<Info>
  Prefer the terminal? The [Faucet API](/learn/getting-started/faucet-api) funds testnet and previewnet accounts programmatically, ideal for scripts, CI pipelines, and agentic workflows.
</Info>

<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** kicks in to establish a new Hedera account linked to your EVM address.

      This process creates a **hollow account**, an account with an ID and alias but no key. Hollow accounts can receive HBAR and tokens, but it cannot transfer tokens from the account or modify any account properties until the account key has been added and the account is complete.

      To complete the account, use it as the **fee payer** in a transaction and sign with the **ECDSA private key** tied to the EVM address. Once completed, the account works like any regular Hedera account.
    </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>

## 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)
