Free ERC-20 Token Template - Copy Paste Ready (2026)

Free ERC-20 Token Template - Copy Paste Ready (2026)

DevTools Store

Free ERC-20 Token Template (Solidity 2026)

Copy-paste ready. Audited. Gas optimized. OpenZeppelin based.

Basic ERC-20 Token

pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract DevToken is ERC20, Ownable {
    uint256 public maxSupply;
    constructor(uint256 _supply) ERC20("DevToken", "DVT") Ownable(msg.sender) {
        maxSupply = _supply * 10**decimals();
        _mint(msg.sender, maxSupply);
    }
    function mint(address to, uint256 amount) external onlyOwner {
        require(totalSupply() + amount <= maxSupply, "Exceeds max supply");
        _mint(to, amount);
    }
    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }
}

Deploy with Foundry

forge install OpenZeppelin/openzeppelin-contracts
forge create --rpc-url https://ethereum-rpc.publicnode.com DevToken --constructor-args 1000000

Get the Full Web3 Template Pack

This is 1 of 15+ templates. ERC-20 with tax, NFT with royalties, staking pool, DAO governor, vesting wallet, DEX, marketplace. Deploy scripts + tests + React frontend. Pay what you want ($1+).

Get All 15+ Templates Now

Report Page