How to check if Ethereum address is valid or not

Hideyoshi Moriya
1 min readAug 21, 2018


With web3.js, you can check if Ethereum address is valid or not.

Code Example

const address = "0x0089d53F703f7E0843953D48133f74cE247184c2"
let result = Web3.utils.isAddress(address)
console.log(result) // => true


  • Web3.utils.isAddress also checks the checksum, if address has upper and lowercase letters.
  • The function works without the0x prefix.

Working Demo



If you find this article is helpful, it would be greatly appreciated if you could tip Ether to the address below. Thank you!