Is Shellac (E904) Halal or Haram?

The shiny coating on sweets, tablets and fruit comes from an insect resin

Last updated: 19 October 2026

Typical verdict
⚠️ MUSHBOOH — Doubtful Unless the Source Is Known
Shellac is a resin secreted by the lac insect. One Hanafi answer says foods containing shellac are halal; a 2012 food guide marked it as under investigation. We class it as doubtful and ask you to follow your scholar.

The Short Answer

Shellac (E904) is doubtful (mushbooh) on our list, and qualified sources have not given one single answer. It is a resin that the female lac insect secretes on trees. One Muftionline answer in the Hanafi tradition states that "foods containing shellac are halaal". A UK-based food guide from 2012 said the question was "under investigation" and had not been settled.

Because the resin is a secretion and is separated from the insects during processing, many people are comfortable with it. Others avoid it, particularly if they follow a school that is stricter about insects. Our job is to show you the sources so you can follow the opinion that applies to you.

Quick guide: If you follow the Hanafi view cited below, shellac is acceptable. If you follow a stricter view on insects, or want to be cautious, avoid glazed sweets and tablets that list E904 or "confectioner's glaze".

What is shellac?

The general reference on shellac describes it as a resin secreted by the female lac bug (Kerria lacca) on trees in the forests of India and Thailand. The insects suck tree sap and excrete "sticklac" almost constantly, which forms tunnel-like tubes along branches. The resin is scraped from the bark, heated so that it liquefies and runs out, leaving the bark and insects behind, and then dried into flakes or "buttons".

Chemically it is mostly aleuritic, jalaric and shellolic acids with natural waxes. In food it is E904. It is used as a confectioner's glaze on sweets and pills (sometimes called a pharmaceutical glaze), as a wax-like coating on citrus fruit to extend shelf life, and as part of coatings that replace the natural wax removed from apples during cleaning.

What do scholars say?

The answer that says it is halal

A Muftionline answer in the Hanafi tradition concludes that "foods containing shellac are halaal". The answer does not discuss shellac in detail; it notes that its supporting texts deal with calf rennet, and it cites classical texts that treat parts of an animal that are not affected by life, such as hair, bone and horn, as pure. It does not apply that principle to shellac in so many words. Another Muftionline page, listed under Hanafi fiqh, only refers the questioner to that answer. The question itself mentions the argument that shellac might be treated like honey, which is also a secretion from an insect, but the answer does not evaluate that analogy.

The answer that says it is unresolved

The MuftiSays answer, published through IslamQA and dated July 2012, does not put E904 on its exception list but notes that "this E number is also under investigation", concerning whether lac insect secretions are pure (tahir) or impure (najis). It treated the question as open at the time of writing.

Summary: one source says halal; another said it was undecided. The difference is real, which is why we do not give a flat "halal" or "haram".

Why madhab matters here

The core question is whether an insect secretion is pure and whether insects as a category are permitted food. Schools of Islamic law differ on insects in general: some treat most insects as impermissible to eat, while others (notably some Maliki scholars) take a more permissive view of certain insects. Shellac is not the insect itself, so the debate is about the purity of the secretion and about whether the process involves the animal's body. The Hanafi answer above treats the matter as permissible; readers who follow other schools should ask a scholar of their own school.

We do not claim any national halal authority has issued a ruling on E904 unless we have read it. If you have seen such a ruling, send it to us through the contact page.

Where you will find E904

ProductHow shellac is used
Glossy sweets, jelly beans, chocolate-coated nutsFinal polish or glaze; may be called confectioner's glaze
Tablets and capsulesPharmaceutical glaze or enteric coating
Fresh citrus fruit and applesWax-like coating to extend storage
Coffee beans and cake decorationsOccasional glaze

Fruit that is sold with a coating usually has a sign or label saying so. Washing and peeling fruit is a practical option if you prefer to avoid it.

Vegan, vegetarian and kosher notes

Because shellac comes from an insect, it is not vegan, and many vegans avoid it. Vegetarian opinion varies, since the resin is a secretion and the insects are not eaten. Kosher authorities generally treat it according to their own rules, which differ from Islamic rules, so a kosher mark does not settle a halal question.

How to decide

  1. If you follow the Hanafi answer above, you may accept shellac on that basis.
  2. If you prefer caution, avoid products listing E904, "shellac" or "confectioner's glaze".
  3. For medicines, ask a pharmacist for an uncoated or vegetable-coated alternative.
  4. For fruit, wash and peel, or buy unwaxed.

Asking the maker

A short, polite email usually gets a useful reply. You can copy and adapt this:

"Hello, I am a Muslim customer. Could you tell me whether the shellac or glaze (E904) in your product [name and barcode] comes from a plant, an animal or a synthetic or fermentation process, and if from an animal, whether it was slaughtered in the halal way? Do you hold a halal certificate for this product? Thank you."

Keep the reply. If the answer is vague, treat the product as doubtful and choose a certified alternative.

Why we say "check" for doubtful ingredients

Islamic teaching on doubtful matters is the basis for how we label these ingredients. A well-known hadith, recorded in the collections of al-Bukhari and Muslim, says that the halal is clear and the haram is clear, and between them are doubtful matters that many people do not know about. Scholars generally draw two practical points from it. First, you are encouraged to avoid what you have real reason to doubt, as far as you reasonably can. Second, this is not a call to be anxious about every additive: where there is no real reason to doubt, most scholars do not ask you to investigate beyond what is reasonable.

That is why our "doubtful" label means check if you can, not assume it is forbidden. A halal logo, a clear source on the label, or a short email to the maker will usually settle the matter. If you follow a particular madhab or scholar, their guidance comes first.

E904 Compared With Other Coatings and Glazes

E-CodeNameStatusNotes
E904ShellacDoubtfulResin secreted by the lac insect. One Hanafi answer says foods containing shellac are halal; a 2012 food guide listed it as under investigation. Practising Muslims follow their own scholar. Full guide →
E901BeeswaxHalalAnimal product. Not vegan.
E441GelatineHaramHaram when from pork or from animals not slaughtered in the halal way. Halal from fish, plant-based alternatives, or certified halal sources. Scholars differ on whether transformation changes the ruling. Full guide →
E471Mono- and diglycerides of fatty acidsDoubtfulSource is not disclosed on labels and can be plant or animal. Full guide →
E422Glycerol (glycerine)DoubtfulPlant or chemical glycerine is halal; animal-derived glycerine is not unless from halal-slaughtered animals, and some scholars are more lenient for external use. The source is rarely stated on labels. Full guide →
E920L-cysteineDoubtfulCommonly made from animal feathers or hair, or by fermentation. Some scholars permit it whatever the source because it is transformed; others avoid animal or human-hair sources. Labels rarely say which. Full guide →

Frequently Asked Questions

Is shellac halal?

One Hanafi answer says foods containing shellac are halal, while a 2012 food guide said the question was under investigation. We class it as doubtful and ask you to follow your own scholar.

What is shellac made from?

It is a resin secreted by the female lac insect on trees in India and Thailand. It is scraped from the bark and heated so that the resin separates from the bark and the insects.

Is confectioner's glaze the same as shellac?

Yes, in most cases. Confectioner's glaze, pharmaceutical glaze and E904 refer to shellac-based coatings.

Is shellac vegan?

No. It comes from an insect, so vegans generally avoid it.

Are shellac-coated tablets halal?

The same question applies. Ask your pharmacist for an uncoated or plant-coated version if you want to avoid shellac.

Check Any E-Code or Ingredient Instantly

Type any E-code or ingredient name into Afiya AI's free checker and get an instant answer with an explanation.

✦ Open Free Halal Checker

Sources

These are the pages we read for this guide. We summarise what each says; we do not claim these bodies endorse Afiya AI.

Related Guides

Disclaimer: This is a general educational reference, not a fatwa. Scholars differ on some points, and halal status can vary by country, manufacturing process and school of Islamic thought. Rulings vary by country and certifier; always confirm with your local halal authority or the manufacturer. Afiya AI is not a halal certification body and does not give religious rulings.