At the checkpoint
TSA’s note on the entry: officers “may instruct travelers to separate items from carry-on bags such as foods, powders, and any materials that can clutter bags and obstruct clear images on the X-ray machine.” A tin or box near the top of the bag lifts out in a second. One buried under a laptop and a coat takes longer.
Brownies and other baked goods
TSA’s entry for pies and cakes is a yes for both bags too (pie and cake have their own page). Its Thanksgiving notice for Denver, 23 Nov 2026, lists baked goods that are fine in a carry-on: “Holiday pies, cakes, cookies and brownies”.
Frosting, cookie butter and other spreads
The cookies are solid. A tub of frosting or a jar of cookie butter is a spread. TSA’s travel tips give the test: “If you can spill it, spread it, spray it, pump it or pour it, and it’s larger than 3.4 ounces, it should go in a checked bag.” The 3.4-ounce rule applies to the tub, not the cookies.
As a gift
TSA encourages gift bags, “which they can easily open,” or boxes with lids that come off, so an officer can look inside “and avoid the possibility of opening fully wrapped presents.” A tin with a lid fits that. More in food gifts and wrapped gifts.
Flying home from abroad
TSA’s answer covers screening at US airports. On the way home you go through the other airport’s screening first, and its rules are the ones that count there.
Coming home through US customs
CBP’s line is short: “You may bring bakery items and certain cheeses into the United States.”
That line is the whole of what CBP says. It doesn’t name cookies, and CBP’s agriculture page doesn’t mention bakery items at all.
Declare it either way. USDA says declared food brings no penalty, even when it’s refused. What happens if you don’t.

TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”