<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>387</ContextCount>
  <ElementCount>495</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>132</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>75000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>75010 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>75020 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>75030 - Statement - Condensed Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/StatementCondensedConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>75040 - Statement - Condensed Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>75050 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>75060 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>75070 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995455 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995465 - Disclosure - Recent Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureRecentAccountingPronouncements</Role>
      <ShortName>Recent Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995475 - Disclosure - Restructuring Activities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureRestructuringActivities</Role>
      <ShortName>Restructuring Activities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995485 - Disclosure - Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSegments</Role>
      <ShortName>Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995495 - Disclosure - Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisition1</Role>
      <ShortName>Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995505 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995515 - Disclosure - Accumulated Other Comprehensive Income (Loss) ("AOCI")</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAccumulatedOtherComprehensiveIncomeLossAoci</Role>
      <ShortName>Accumulated Other Comprehensive Income (Loss) ("AOCI")</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995525 - Disclosure - Goodwill, Customer Relationships, Finite-Lived and Indefinite-Lived Trademarks, and Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureGoodwillCustomerRelationshipsFinitelivedAndIndefinitelivedTrademarksAndOtherIntangibleAssets</Role>
      <ShortName>Goodwill, Customer Relationships, Finite-Lived and Indefinite-Lived Trademarks, and Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995535 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995545 - Disclosure - Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDerivativeFinancialInstruments</Role>
      <ShortName>Derivative Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995555 - Disclosure - Other Current and Non-Current Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherCurrentAndNonCurrentAssets</Role>
      <ShortName>Other Current and Non-Current Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995565 - Disclosure - Other Accrued Liabilities and Other Long-Term Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherAccruedLiabilitiesAndOtherLongTermLiabilities</Role>
      <ShortName>Other Accrued Liabilities and Other Long-Term Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995575 - Disclosure - Assets Held for Sale</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAssetsHeldForSale</Role>
      <ShortName>Assets Held for Sale</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995585 - Disclosure - Debt and Other Obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDebtAndOtherObligations</Role>
      <ShortName>Debt and Other Obligations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995595 - Disclosure - Variable Interest Entities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureVariableInterestEntities</Role>
      <ShortName>Variable Interest Entities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995605 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995615 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureEarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995625 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995635 - Disclosure - Postretirement Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePostretirementPlans</Role>
      <ShortName>Postretirement Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995645 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995655 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995665 - Disclosure - Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureBasisOfPresentationPolicies</Role>
      <ShortName>Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureRecentAccountingPronouncements</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995675 - Disclosure - Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSegmentsTables</Role>
      <ShortName>Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSegments</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995685 - Disclosure - Basis of Presentation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureBasisOfPresentationTables</Role>
      <ShortName>Basis of Presentation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureBasisOfPresentation</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995695 - Disclosure - Restructuring Activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureRestructuringActivitiesTables</Role>
      <ShortName>Restructuring Activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureRestructuringActivities</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995705 - Disclosure - Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisitionTables</Role>
      <ShortName>Acquisition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisition1</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995715 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995725 - Disclosure - Accumulated Other Comprehensive Income (Loss) ("AOCI") (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAccumulatedOtherComprehensiveIncomeLossAociTables</Role>
      <ShortName>Accumulated Other Comprehensive Income (Loss) ("AOCI") (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAccumulatedOtherComprehensiveIncomeLossAoci</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995735 - Disclosure - Goodwill, Customer Relationships, Finite-Lived and Indefinite-Lived Trademarks, and Other Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureGoodwillCustomerRelationshipsFinitelivedAndIndefinitelivedTrademarksAndOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill, Customer Relationships, Finite-Lived and Indefinite-Lived Trademarks, and Other Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureGoodwillCustomerRelationshipsFinitelivedAndIndefinitelivedTrademarksAndOtherIntangibleAssets</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995745 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995755 - Disclosure - Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDerivativeFinancialInstruments</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995765 - Disclosure - Other Current and Non-Current Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherCurrentAndNonCurrentAssetsTables</Role>
      <ShortName>Other Current and Non-Current Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherCurrentAndNonCurrentAssets</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995775 - Disclosure - Other Accrued Liabilities and Other Long-Term Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherAccruedLiabilitiesAndOtherLongTermLiabilitiesTables</Role>
      <ShortName>Other Accrued Liabilities and Other Long-Term Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherAccruedLiabilitiesAndOtherLongTermLiabilities</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995785 - Disclosure - Assets Held for Sale (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAssetsHeldForSaleTables</Role>
      <ShortName>Assets Held for Sale (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAssetsHeldForSale</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995795 - Disclosure - Debt and Other Obligations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDebtAndOtherObligationsTables</Role>
      <ShortName>Debt and Other Obligations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDebtAndOtherObligations</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995805 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureEarningsPerShare</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995815 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensation</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995825 - Disclosure - Postretirement Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePostretirementPlansTables</Role>
      <ShortName>Postretirement Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePostretirementPlans</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995835 - Disclosure - Basis of Presentation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureBasisOfPresentationAdditionalInformationDetail</Role>
      <ShortName>Basis of Presentation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995845 - Disclosure - Recent Accounting Pronouncements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureRecentAccountingPronouncementsAdditionalInformationDetail</Role>
      <ShortName>Recent Accounting Pronouncements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995855 - Disclosure - Effect of Largest Customer on Sales (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureEffectOfLargestCustomerOnSalesDetail</Role>
      <ShortName>Effect of Largest Customer on Sales (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995865 - Disclosure - Restructuring activities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureRestructuringActivitiesAdditionalInformationDetail</Role>
      <ShortName>Restructuring activities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995875 - Disclosure - Restructuring activities - Components of Costs Associated with Restructuring Programs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureRestructuringActivitiesComponentsOfCostsAssociatedWithRestructuringProgramsDetail</Role>
      <ShortName>Restructuring activities - Components of Costs Associated with Restructuring Programs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995885 - Disclosure - Restructuring activities - Components of, and Changes in Restructuring Accruals (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureRestructuringActivitiesComponentsOfAndChangesInRestructuringAccrualsDetail</Role>
      <ShortName>Restructuring activities - Components of, and Changes in Restructuring Accruals (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995905 - Disclosure - Segments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSegmentsAdditionalInformationDetails</Role>
      <ShortName>Segments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995915 - Disclosure - Segments - Schedule of Expense Items Impacting Comparability in Adjusted Reports Used by CODM (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSegmentsScheduleOfExpenseItemsImpactingComparabilityInAdjustedReportsUsedByCodmDetails</Role>
      <ShortName>Segments - Schedule of Expense Items Impacting Comparability in Adjusted Reports Used by CODM (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995925 - Disclosure - Segments - Schedule of Net Sales, Net Income, and Significant Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSegmentsScheduleOfNetSalesNetIncomeAndSignificantExpensesDetails</Role>
      <ShortName>Segments - Schedule of Net Sales, Net Income, and Significant Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995935 - Disclosure - Acquisition - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisitionAdditionalInformationDetail</Role>
      <ShortName>Acquisition - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995945 - Disclosure - Acquisition - Summary of Consideration Paid and Valuations for Assets Acquired, Liabilities Assumed, and Allocated Intangible Assets and Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisitionSummaryOfConsiderationPaidAndValuationsForAssetsAcquiredLiabilitiesAssumedAndAllocatedIntangibleAssetsAndGoodwillDetai</Role>
      <ShortName>Acquisition - Summary of Consideration Paid and Valuations for Assets Acquired, Liabilities Assumed, and Allocated Intangible Assets and Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995955 - Disclosure - Acquisition - Schedule of Acquired Intangible Assets Subject to Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisitionScheduleOfAcquiredIntangibleAssetsSubjectToAmortizationDetails</Role>
      <ShortName>Acquisition - Schedule of Acquired Intangible Assets Subject to Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995965 - Disclosure - Acquisition - Schedule of Supplemental Pro Forma Revenue and Net Earnings of The Combined Entity Had The Acquisition Date (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAcquisitionScheduleOfSupplementalProFormaRevenueAndNetEarningsOfTheCombinedEntityHadTheAcquisitionDateDetails</Role>
      <ShortName>Acquisition - Schedule of Supplemental Pro Forma Revenue and Net Earnings of The Combined Entity Had The Acquisition Date (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995975 - Disclosure - Lease Modifications and Renewals and Lease Terminations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureLeaseModificationsAndRenewalsAndLeaseTerminationsDetail</Role>
      <ShortName>Lease Modifications and Renewals and Lease Terminations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>995995 - Disclosure - Leases - Lease Costs Incurred By Lease Type, and/or Type Of Payment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLeasesLeaseCostsIncurredByLeaseTypeAndOrTypeOfPaymentDetail</Role>
      <ShortName>Leases - Lease Costs Incurred By Lease Type, and/or Type Of Payment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>996005 - Disclosure - Leases - Other Supplemental Quantitative Disclosures (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLeasesOtherSupplementalQuantitativeDisclosuresDetail</Role>
      <ShortName>Leases - Other Supplemental Quantitative Disclosures (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>996015 - Disclosure - Leases - Estimated Undiscounted Future Lease Payments Under Non-Cancelable Operating Leases and Financing Leases with Reconciliation of Undiscounted Cash Flows (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLeasesEstimatedUndiscountedFutureLeasePaymentsUnderNonCancelableOperatingLeasesAndFinancingLeasesWithReconciliationOfUndiscountedCashFlowsDetail</Role>
      <ShortName>Leases - Estimated Undiscounted Future Lease Payments Under Non-Cancelable Operating Leases and Financing Leases with Reconciliation of Undiscounted Cash Flows (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>996025 - Disclosure - Summary of Reclassifications Out of AOCI (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureSummaryOfReclassificationsOutOfAOCIDetail</Role>
      <ShortName>Summary of Reclassifications Out of AOCI (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>996035 - Disclosure - Changes to AOCI, Net of Income Tax, By Component (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureChangesToAOCINetOfIncomeTaxByComponentDetail</Role>
      <ShortName>Changes to AOCI, Net of Income Tax, By Component (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>996045 - Disclosure - Gain (Loss) Reclassified From AOCI for Commodity Contracts (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureGainLossReclassifiedFromAOCIForCommodityContractsDetail</Role>
      <ShortName>Gain (Loss) Reclassified From AOCI for Commodity Contracts (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>996055 - Disclosure - Summary of Changes in Carrying Amount of Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSummaryOfChangesInCarryingAmountOfGoodwillDetail</Role>
      <ShortName>Summary of Changes in Carrying Amount of Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>996065 - Disclosure - Goodwill, Customer Relationships, Finite-Lived and Indefinite-Lived Trademarks, and Other Intangible Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureGoodwillCustomerRelationshipsFinitelivedAndIndefinitelivedTrademarksAndOtherIntangibleAssetsAdditionalInformationDetail</Role>
      <ShortName>Goodwill, Customer Relationships, Finite-Lived and Indefinite-Lived Trademarks, and Other Intangible Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureGoodwillCustomerRelationshipsFinitelivedAndIndefinitelivedTrademarksAndOtherIntangibleAssetsTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>996075 - Disclosure - Amortizable Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAmortizableIntangibleAssetsDetail</Role>
      <ShortName>Amortizable Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>996085 - Disclosure - Aggregate Amortization Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAggregateAmortizationExpenseDetail</Role>
      <ShortName>Aggregate Amortization Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>996095 - Disclosure - Estimated Net Amortization of Intangibles (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureEstimatedNetAmortizationOfIntangiblesDetail</Role>
      <ShortName>Estimated Net Amortization of Intangibles (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>996105 - Disclosure - Fair Value of Financial Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>996115 - Disclosure - Interest Income Primarily Related to IDPs Notes Receivable (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureInterestIncomePrimarilyRelatedToIdpsNotesReceivableDetail</Role>
      <ShortName>Interest Income Primarily Related to IDPs Notes Receivable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>996125 - Disclosure - Carrying Value of Distributor Notes Receivable (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureCarryingValueOfDistributorNotesReceivableDetail</Role>
      <ShortName>Carrying Value of Distributor Notes Receivable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>996135 - Disclosure - Schedule of Fair Value of Notes (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureScheduleOfFairValueOfNotesDetail</Role>
      <ShortName>Schedule of Fair Value of Notes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>996145 - Disclosure - Schedule of Fair Value of Notes (Parenthetical) (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureScheduleOfFairValueOfNotesParentheticalDetail</Role>
      <ShortName>Schedule of Fair Value of Notes (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>996155 - Disclosure - Net Fair Value of Commodity Price Risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureNetFairValueOfCommodityPriceRiskDetail</Role>
      <ShortName>Net Fair Value of Commodity Price Risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>996165 - Disclosure - Net Fair Value of Interest Price Risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureNetFairValueOfInterestPriceRiskDetail</Role>
      <ShortName>Net Fair Value of Interest Price Risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>996175 - Disclosure - Derivative Financial Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureDerivativeFinancialInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Derivative Financial Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>996185 - Disclosure - Derivative Instruments Located on Condensed Consolidated Balance Sheet (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocatedOnCondensedConsolidatedBalanceSheetDetail</Role>
      <ShortName>Derivative Instruments Located on Condensed Consolidated Balance Sheet (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>996205 - Disclosure - Effect of Derivative Instruments for Deferred Gains And (Losses) on Closed Contracts and Effective Portion in Fair Value on AOCI, Utilized for Risk Management Purposes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureEffectOfDerivativeInstrumentsForDeferredGainsAndLossesOnClosedContractsAndEffectivePortionInFairValueOnAociUtilizedForRiskMan</Role>
      <ShortName>Effect of Derivative Instruments for Deferred Gains And (Losses) on Closed Contracts and Effective Portion in Fair Value on AOCI, Utilized for Risk Management Purposes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>996215 - Disclosure - Accumulated Other Comprehensive Loss (Income) Related to Derivative Transactions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeRelatedToDerivativeTransactionsDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Income) Related to Derivative Transactions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAccumulatedOtherComprehensiveIncomeLossAociTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>996225 - Disclosure - Financial Contracts Hedging Commodity Risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureFinancialContractsHedgingCommodityRiskDetail</Role>
      <ShortName>Financial Contracts Hedging Commodity Risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>996235 - Disclosure - Components of Other Current Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureComponentsOfOtherCurrentAssetsDetail</Role>
      <ShortName>Components of Other Current Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>996245 - Disclosure - Components of Other Non-Current Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureComponentsOfOtherNonCurrentAssetsDetail</Role>
      <ShortName>Components of Other Non-Current Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>996255 - Disclosure - Components of Other Accrued Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureComponentsOfOtherAccruedLiabilitiesDetail</Role>
      <ShortName>Components of Other Accrued Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>996265 - Disclosure - Other Accrued Liabilities and Other Long-term Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureOtherAccruedLiabilitiesAndOtherLongTermLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Other Accrued Liabilities and Other Long-term Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>996275 - Disclosure - Components of Other Long-term Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureComponentsOfOtherLongTermLiabilitiesDetails</Role>
      <ShortName>Components of Other Long-term Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>996285 - Disclosure - Assets Held for Sale - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureAssetsHeldForSaleAdditionalInformationDetail</Role>
      <ShortName>Assets Held for Sale - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>996295 - Disclosure - Assets Held for Sale (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAssetsHeldForSaleDetail</Role>
      <ShortName>Assets Held for Sale (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAssetsHeldForSaleTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>996305 - Disclosure - Long Term Debt (Net of Issuance Costs and Debt Discounts Excluding Line-of-credit Arrangements) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLongTermDebtNetOfIssuanceCostsAndDebtDiscountsExcludingLineOfCreditArrangementsDetail</Role>
      <ShortName>Long Term Debt (Net of Issuance Costs and Debt Discounts Excluding Line-of-credit Arrangements) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>996315 - Disclosure - Long Term Debt (Net of Issuance Costs and Debt Discounts Excluding Line-of-credit Arrangements) (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureLongTermDebtNetOfIssuanceCostsAndDebtDiscountsExcludingLineOfCreditArrangementsParentheticalDetail</Role>
      <ShortName>Long Term Debt (Net of Issuance Costs and Debt Discounts Excluding Line-of-credit Arrangements) (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>996325 - Disclosure - Debt and Other Obligations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDebtAndOtherObligationsAdditionalInformationDetail</Role>
      <ShortName>Debt and Other Obligations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>996335 - Disclosure - Schedule of Borrowings and Repayments Under Facility (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureScheduleOfBorrowingsAndRepaymentsUnderFacilityDetail</Role>
      <ShortName>Schedule of Borrowings and Repayments Under Facility (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>996345 - Disclosure - Schedule of Net Amount Available Under Facility (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureScheduleOfNetAmountAvailableUnderFacilityDetail</Role>
      <ShortName>Schedule of Net Amount Available Under Facility (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>996355 - Disclosure - Schedule of Highest and Lowest Outstanding Balance Under Facility (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureScheduleOfHighestAndLowestOutstandingBalanceUnderFacilityDetail</Role>
      <ShortName>Schedule of Highest and Lowest Outstanding Balance Under Facility (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>996365 - Disclosure - Aggregate Maturities of Debt Outstanding (Including Capital Leases) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureAggregateMaturitiesOfDebtOutstandingIncludingCapitalLeasesDetail</Role>
      <ShortName>Aggregate Maturities of Debt Outstanding (Including Capital Leases) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>996375 - Disclosure - Reconciliation of Debt Issuance Costs and Debt Discounts to the Net Carrying Value for Each Debt Obligation (Excluding Line of Credit Arrangements) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureReconciliationOfDebtIssuanceCostsAndDebtDiscountsToNetCarryingValueForEachDebtObligationExcludingLineOfCreditArrangementsDetail</Role>
      <ShortName>Reconciliation of Debt Issuance Costs and Debt Discounts to the Net Carrying Value for Each Debt Obligation (Excluding Line of Credit Arrangements) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>996385 - Disclosure - Variable Interest Entities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureVariableInterestEntitiesAdditionalInformationDetail</Role>
      <ShortName>Variable Interest Entities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>996395 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>996405 - Disclosure - Basic and Diluted Earnings per Common Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureBasicAndDilutedEarningsPerCommonShareDetail</Role>
      <ShortName>Basic and Diluted Earnings per Common Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>996415 - Disclosure - Earnings Per Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetail</Role>
      <ShortName>Earnings Per Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>996425 - Disclosure - Stock-Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>996435 - Disclosure - Stock-Based Compensation (Performance-Contingent Total Shareholder Return Shares) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationPerformanceContingentTotalShareholderReturnSharesAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation (Performance-Contingent Total Shareholder Return Shares) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTables</ParentRole>
      <Position>106</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>996445 - Disclosure - Performance Contingent Total Shareholder Return Shares (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePerformanceContingentTotalShareholderReturnSharesDetail</Role>
      <ShortName>Performance Contingent Total Shareholder Return Shares (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>996455 - Disclosure - Performance Contingent TSR Shares (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePerformanceContingentTSRSharesDetail</Role>
      <ShortName>Performance Contingent TSR Shares (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>996465 - Disclosure - Stock-Based Compensation (Performance-Contingent Return on Invested Capital Shares) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationPerformanceContingentReturnOnInvestedCapitalSharesAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation (Performance-Contingent Return on Invested Capital Shares) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTables</ParentRole>
      <Position>109</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>996475 - Disclosure - Stock-Based Compensation - Summary of ROIC Shares Earned Based on Ranges of Target (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureStockbasedCompensationSummaryOfRoicSharesEarnedBasedOnRangesOfTargetDetails</Role>
      <ShortName>Stock-Based Compensation - Summary of ROIC Shares Earned Based on Ranges of Target (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>996485 - Disclosure - Performance Contingent ROIC Shares (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePerformanceContingentROICSharesDetail</Role>
      <ShortName>Performance Contingent ROIC Shares (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>996495 - Disclosure - Performance-Contingent Restricted Stock Awards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosurePerformancecontingentRestrictedStockAwardsDetails</Role>
      <ShortName>Performance-Contingent Restricted Stock Awards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>996505 - Disclosure - Performance-Contingent Restricted Stock Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePerformanceContingentRestrictedStockActivityDetail</Role>
      <ShortName>Performance-Contingent Restricted Stock Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>996515 - Disclosure - Stock-Based Compensation (Performance-Contingent Restricted Stock) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationPerformanceContingentRestrictedStockAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation (Performance-Contingent Restricted Stock) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTables</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>996525 - Disclosure - Stock-Based Compensation (Time-Based Restricted Stock Units) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTimeBasedRestrictedStockUnitsAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation (Time-Based Restricted Stock Units) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTables</ParentRole>
      <Position>115</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>996535 - Disclosure - Time-Based Restricted Stock Units (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureTimeBasedRestrictedStockUnitsDetail</Role>
      <ShortName>Time-Based Restricted Stock Units (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>996545 - Disclosure - Time-Based Restricted Stock Units Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureTimeBasedRestrictedStockUnitsActivityDetail</Role>
      <ShortName>Time-Based Restricted Stock Units Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>996555 - Disclosure - Vesting Time-Based Restricted Stock Units (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureVestingTimeBasedRestrictedStockUnitsDetail</Role>
      <ShortName>Vesting Time-Based Restricted Stock Units (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>996565 - Disclosure - Stock-Based Compensation (Deferred Stock) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationDeferredStockAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation (Deferred Stock) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureStockBasedCompensationTables</ParentRole>
      <Position>119</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>996575 - Disclosure - Deferred Stock Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureDeferredStockActivityDetail</Role>
      <ShortName>Deferred Stock Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>996585 - Disclosure - Summary of Company's Stock-Based Compensation Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureSummaryOfCompanySStockBasedCompensationExpenseDetail</Role>
      <ShortName>Summary of Company's Stock-Based Compensation Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>996595 - Disclosure - Summary of Company's Condensed Consolidated Balance Sheets Related Pension and Other Postretirement Benefit Plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/DisclosureSummaryOfCompanysCondensedConsolidatedBalanceSheetsRelatedPensionAndOtherPostretirementBenefitPlanDetail</Role>
      <ShortName>Summary of Company's Condensed Consolidated Balance Sheets Related Pension and Other Postretirement Benefit Plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>996605 - Disclosure - Postretirement Plans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosurePostretirementPlansAdditionalInformationDetail</Role>
      <ShortName>Postretirement Plans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>996615 - Disclosure - Components of Net Periodic Benefit Cost (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureComponentsOfNetPeriodicBenefitCostDetail</Role>
      <ShortName>Components of Net Periodic Benefit Cost (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>996625 - Disclosure - Summary of Total Cost and Employer Contributions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureSummaryOfTotalCostAndEmployerContributionsDetail</Role>
      <ShortName>Summary of Total Cost and Employer Contributions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report instance="flo-20250712.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>996635 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.flowersfoods.com/20250712/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>126</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="flo-20250712.htm">flo-20250712.htm</File>
    <File>flo-20250712.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1309">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
