Using a sample of (225.3±2.8)×106J/ψ decays collected with the BESIII detector at BEPCII, searches for invisible decays of η and η′ in J/ψ→ϕη and ϕη′ are performed. Decays of ϕ→K+K− are used to tag the η and η′ decays. No signals above background are found for the invisible decays, and upper limits at the 90% confidence level are determined to be 2.58×10−4 for the ratio B(η→γγ)B(η→invisible) and 2.39×10−2 for B(η′→γγ)B(η′→invisible).