ISAs form part of a person’s taxable estate along with other savings, investments, and possessions, so up to 40% of could be eaten up by inheritance tax rather than passed to your loved ones.
An alternative option is to invest in certain AIM shares within your ISA many of which will qualify for BPR (Business Property Relief). Providing you hold them on death and have been invested for at least two years they should be free of inheritance tax.