An Ethereum testnet is a separate network that works like Ethereum mainnet but uses test ETH with no real value, so you can deploy and debug smart contracts for free. Today the main public testnet for application developers is Sepolia. You get test ether from a faucet, a website or service that sends a small amount to your address, then you add the network to your wallet and deploy.
This guide covers what an ethereum testnet faucet gives you, which networks are in use in 2026, how to connect, and the safe way to handle keys.
Mainnet transactions cost real money, and a bug in a deployed contract is permanent. A testnet lets you rehearse the full workflow:
A testnet runs the same client software and rules as mainnet, but its currency has no market value and its chain has its own chain ID. Because the ETH is free, it is meant to be hard to hoard, and faucets limit how much you can claim.
Local development chains such as Hardhat Network or Anvil are different. They run only on your machine and are ideal for fast unit tests. A public testnet is the next step, used before mainnet.
Testnets come and go as the protocol upgrades. Older ones such as Ropsten, Rinkeby, Kovan and Goerli have been shut down and should not appear in new tutorials.
| Network | Chain ID | Main purpose |
|---|---|---|
| Sepolia | 11155111 | Default testnet for smart contract and dapp developers |
| Hoodi | 560048 | Testnet for validators, staking and protocol upgrade testing |
| Holesky | 17000 | Previously used for staking tests, now deprecated |
Check the official Ethereum documentation for the current list before you start, because the recommended networks change as upgrades are tested. If you are writing an application, use Sepolia. If you are testing validator setups or a new client release, use Hoodi.
Most wallets, including MetaMask, already list Sepolia, but may hide test networks by default.
If you must add a network manually, use these fields:
You get an RPC URL from a node provider such as Alchemy or Infura, or by running your own node. Public endpoints work for light use but are rate limited.
A faucet is a service that sends a small amount of test ETH to an address you provide. The steps are almost always the same.
Faucet policies change often. Some require a small mainnet balance or a social login to prevent abuse, and most limit you to a fixed amount per day. If one faucet is empty or rate limits you, try another. Never pay for testnet ETH, because anyone selling it is trying to scam you.
Once you have test ETH, confirm it from code. This example uses ethers v6 and reads your RPC URL from an environment variable:
To deploy with Hardhat, add the network to hardhat.config.js:
You can then run your deployment script against the network with npx hardhat run scripts/deploy.js --network sepolia. Newer Hardhat releases change configuration details, so follow the documentation of the version you install.
Test networks have no financial risk, but the habits you build carry over.
.env file should be listed in .gitignore.No. Test ETH has no market value and cannot be exchanged for real ETH. Its only use is paying gas on a testnet.
Common causes are a daily limit, an anti-abuse check such as a minimum mainnet balance, or an empty faucet. Try another faucet or wait until the limit resets.
Use both. A local chain such as Hardhat Network or Anvil is instant and free for unit tests. Use Sepolia to check behaviour with real wallets, indexers and block times before mainnet.
Sepolia is the standard choice for dapps and contracts. Check the Ethereum documentation for the current recommendation, because networks are retired over time.
Ethereum testnets let you deploy and test contracts with worthless ETH before touching mainnet. Sepolia (chain ID 11155111) is the default for developers, Hoodi serves validator and protocol testing, and older networks like Goerli are gone. Add the network to your wallet, claim test ETH from a faucet, verify the balance in code and deploy with Hardhat or similar tools, using a separate wallet and keeping keys out of source control.