<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.3.a.u2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>329</ContextCount>
  <ElementCount>550</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>105</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>11</UnitCount>
  <MyReports>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Operations and summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Operations and summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/Revenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Short-term investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ShortTermInvestments</Role>
      <ShortName>Short-term investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Fair value measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/FairValueMeasurements</Role>
      <ShortName>Fair value measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Derivative instruments and hedging activities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivities</Role>
      <ShortName>Derivative instruments and hedging activities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/PropertyAndEquipment</Role>
      <ShortName>Property and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Intangible assets and Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IntangibleAssetsAndGoodwill</Role>
      <ShortName>Intangible assets and Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Comprehensive income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ComprehensiveIncome</Role>
      <ShortName>Comprehensive income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Authorized shares of common and preferred stock and stock-based compensation plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlans</Role>
      <ShortName>Authorized shares of common and preferred stock and stock-based compensation plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Employee retirement plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/EmployeeRetirementPlan</Role>
      <ShortName>Employee retirement plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Segment information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/SegmentInformation</Role>
      <ShortName>Segment information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Litigation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/Litigation</Role>
      <ShortName>Litigation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2118100 - Disclosure - Restructuring</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/Restructuring</Role>
      <ShortName>Restructuring</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2119100 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Operations and summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Operations and summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2301302 - Disclosure - Operations and summary of significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Operations and summary of significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2302301 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/Revenue</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Short-term investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ShortTermInvestmentsTables</Role>
      <ShortName>Short-term investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/ShortTermInvestments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Fair value measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair value measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/FairValueMeasurements</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Derivative instruments and hedging activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivitiesTables</Role>
      <ShortName>Derivative instruments and hedging activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivities</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/Inventories</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Property and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/PropertyAndEquipmentTables</Role>
      <ShortName>Property and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/PropertyAndEquipment</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Intangible assets and Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IntangibleAssetsAndGoodwillTables</Role>
      <ShortName>Intangible assets and Goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/IntangibleAssetsAndGoodwill</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/Leases</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Income taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesTables</Role>
      <ShortName>Income taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/IncomeTaxes</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Comprehensive income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ComprehensiveIncomeTables</Role>
      <ShortName>Comprehensive income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/ComprehensiveIncome</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Authorized shares of common and preferred stock and stock-based compensation plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlansTables</Role>
      <ShortName>Authorized shares of common and preferred stock and stock-based compensation plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlans</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2316301 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/CommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2318301 - Disclosure - Restructuring (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RestructuringTables</Role>
      <ShortName>Restructuring (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.ni.com/role/Restructuring</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2401403 - Disclosure - Operations and summary of significant accounting policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2401404 - Disclosure - Operations and summary of significant accounting policies - Disposal Groups, Including Discontinued Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesDisposalGroupsIncludingDiscontinuedOperationsDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Disposal Groups, Including Discontinued Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2401405 - Disclosure - Operations and summary of significant accounting policies - Schedule of Allowance for Doubtful Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesScheduleOfAllowanceForDoubtfulAccountsDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Schedule of Allowance for Doubtful Accounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2401406 - Disclosure - Operations and summary of significant accounting policies - Adjustment For Excess And Obsolete Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesAdjustmentForExcessAndObsoleteInventoriesDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Adjustment For Excess And Obsolete Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2401407 - Disclosure - Operations and summary of significant accounting policies - Concentration of Credit Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesConcentrationOfCreditRiskDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Concentration of Credit Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2401408 - Disclosure - Operations and summary of significant accounting policies - Schedule Of Warranty Reserve (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesScheduleOfWarrantyReserveDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Schedule Of Warranty Reserve (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2401409 - Disclosure - Operations and summary of significant accounting policies - Reconciliation Of Denominators Used To Calculate Basic And Diluted EPS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesReconciliationOfDenominatorsUsedToCalculateBasicAndDilutedEpsDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Reconciliation Of Denominators Used To Calculate Basic And Diluted EPS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2401410 - Disclosure - Operations and summary of significant accounting policies - Cumulative Effect Adjustment From Adoption of Topic 606 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesCumulativeEffectAdjustmentFromAdoptionOfTopic606Details</Role>
      <ShortName>Operations and summary of significant accounting policies - Cumulative Effect Adjustment From Adoption of Topic 606 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2401411 - Disclosure - Operations and summary of significant accounting policies - Effect of Adoption on Income Statement and Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesEffectOfAdoptionOnIncomeStatementAndBalanceSheetsDetails</Role>
      <ShortName>Operations and summary of significant accounting policies - Effect of Adoption on Income Statement and Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2401412 - Disclosure - Operations and summary of significant accounting policies - Schedule of Effect From Topic 842 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/OperationsAndSummaryOfSignificantAccountingPoliciesScheduleOfEffectFromTopic842Details</Role>
      <ShortName>Operations and summary of significant accounting policies - Schedule of Effect From Topic 842 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2402402 - Disclosure - Revenue - Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RevenueDisaggregationOfRevenueDetails</Role>
      <ShortName>Revenue - Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2402403 - Disclosure - Revenue - Change in Deferred Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RevenueChangeInDeferredRevenueDetails</Role>
      <ShortName>Revenue - Change in Deferred Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2402404 - Disclosure - Revenue - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RevenueNarrativeDetails</Role>
      <ShortName>Revenue - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Short-term investments  - Unrealized Gains And Losses Related To Short-Term Investments Designated As Available-For-Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ShortTermInvestmentsUnrealizedGainsAndLossesRelatedToShortTermInvestmentsDesignatedAsAvailableForSaleDetails</Role>
      <ShortName>Short-term investments  - Unrealized Gains And Losses Related To Short-Term Investments Designated As Available-For-Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2403403 - Disclosure - Short-term investments  - Contractual Maturities Of Short-Term Investments Designated As Available-For-Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ShortTermInvestmentsContractualMaturitiesOfShortTermInvestmentsDesignatedAsAvailableForSaleDetails</Role>
      <ShortName>Short-term investments  - Contractual Maturities Of Short-Term Investments Designated As Available-For-Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Fair value measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair value measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Derivative instruments and hedging activities  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivitiesNarrativeDetails</Role>
      <ShortName>Derivative instruments and hedging activities  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Derivative instruments and hedging activities  - Summary Of Notional Amounts Of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivitiesSummaryOfNotionalAmountsOfDerivativeInstrumentsDetails</Role>
      <ShortName>Derivative instruments and hedging activities  - Summary Of Notional Amounts Of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2405404 - Disclosure - Derivative instruments and hedging activities  - Fair Values Of Derivative Instruments On Consolidated Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivitiesFairValuesOfDerivativeInstrumentsOnConsolidatedBalanceSheetsDetails</Role>
      <ShortName>Derivative instruments and hedging activities  - Fair Values Of Derivative Instruments On Consolidated Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2405405 - Disclosure - Derivative instruments and hedging activities  - Effect Of Derivative Instruments On Consolidated Statements Of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DerivativeInstrumentsAndHedgingActivitiesEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails</Role>
      <ShortName>Derivative instruments and hedging activities  - Effect Of Derivative Instruments On Consolidated Statements Of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/InventoriesDetails</Role>
      <ShortName>Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/InventoriesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Property and equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/PropertyAndEquipmentDetails</Role>
      <ShortName>Property and equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/PropertyAndEquipmentTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Intangible assets and Goodwill  - Schedule Of Finite-Lived Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IntangibleAssetsAndGoodwillScheduleOfFiniteLivedIntangibleAssetsDetails</Role>
      <ShortName>Intangible assets and Goodwill  - Schedule Of Finite-Lived Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2408403 - Disclosure - Intangible assets and Goodwill  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IntangibleAssetsAndGoodwillNarrativeDetails</Role>
      <ShortName>Intangible assets and Goodwill  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2408404 - Disclosure - Intangible assets and Goodwill  - Estimated Future Amortization Expense Related To Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IntangibleAssetsAndGoodwillEstimatedFutureAmortizationExpenseRelatedToIntangibleAssetsDetails</Role>
      <ShortName>Intangible assets and Goodwill  - Estimated Future Amortization Expense Related To Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2408405 - Disclosure - Intangible assets and Goodwill - Schedule of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IntangibleAssetsAndGoodwillScheduleOfGoodwillDetails</Role>
      <ShortName>Intangible assets and Goodwill - Schedule of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Leases  - Summary of Components of Lease Expense and Other Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/LeasesSummaryOfComponentsOfLeaseExpenseAndOtherInformationDetails</Role>
      <ShortName>Leases  - Summary of Components of Lease Expense and Other Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Leases - Maturities of Operating Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/LeasesMaturitiesOfOperatingLeaseLiabilitiesDetails</Role>
      <ShortName>Leases - Maturities of Operating Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Income taxes  - Components Of Income Before Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesComponentsOfIncomeBeforeIncomeTaxesDetails</Role>
      <ShortName>Income taxes  - Components Of Income Before Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Income taxes  - Provision For Income Taxes Charged To Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesProvisionForIncomeTaxesChargedToOperationsDetails</Role>
      <ShortName>Income taxes  - Provision For Income Taxes Charged To Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - Income taxes  - Deferred Tax Liabilities (Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesDeferredTaxLiabilitiesAssetsDetails</Role>
      <ShortName>Income taxes  - Deferred Tax Liabilities (Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2410405 - Disclosure - Income taxes  - Reconciliation Of Income Taxes To Effective Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesReconciliationOfIncomeTaxesToEffectiveTaxRateDetails</Role>
      <ShortName>Income taxes  - Reconciliation Of Income Taxes To Effective Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2410406 - Disclosure - Income taxes  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income taxes  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2410407 - Disclosure - Income taxes  - Reconciliation Of Beginning And Ending Amount Of Unrecognized Tax Benefit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/IncomeTaxesReconciliationOfBeginningAndEndingAmountOfUnrecognizedTaxBenefitDetails</Role>
      <ShortName>Income taxes  - Reconciliation Of Beginning And Ending Amount Of Unrecognized Tax Benefit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Comprehensive income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/ComprehensiveIncomeDetails</Role>
      <ShortName>Comprehensive income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/ComprehensiveIncomeTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Authorized shares of common and preferred stock and stock-based compensation plans  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlansNarrativeDetails</Role>
      <ShortName>Authorized shares of common and preferred stock and stock-based compensation plans  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlansTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2412404 - Disclosure - Authorized shares of common and preferred stock and stock-based compensation plans  - Schedule Of Restricted Stock Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlansScheduleOfRestrictedStockPlansDetails</Role>
      <ShortName>Authorized shares of common and preferred stock and stock-based compensation plans  - Schedule Of Restricted Stock Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2412405 - Disclosure - Authorized shares of common and preferred stock and stock-based compensation plans  - Assumptions Used To Calculate Weighted Average Purchase Price (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlansAssumptionsUsedToCalculateWeightedAveragePurchasePriceDetails</Role>
      <ShortName>Authorized shares of common and preferred stock and stock-based compensation plans  - Assumptions Used To Calculate Weighted Average Purchase Price (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2412406 - Disclosure - Authorized shares of common and preferred stock and stock-based compensation plans  - Schedule Of Weighted Average Grant Date Fair Value Of Purchase Rights Granted Under Employee Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/AuthorizedSharesOfCommonAndPreferredStockAndStockBasedCompensationPlansScheduleOfWeightedAverageGrantDateFairValueOfPurchaseRightsGrantedUnderEmployeeStockPurchasePlanDetails</Role>
      <ShortName>Authorized shares of common and preferred stock and stock-based compensation plans  - Schedule Of Weighted Average Grant Date Fair Value Of Purchase Rights Granted Under Employee Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2413401 - Disclosure - Employee retirement plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/EmployeeRetirementPlanDetails</Role>
      <ShortName>Employee retirement plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/EmployeeRetirementPlan</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2414401 - Disclosure - Segment information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/SegmentInformationDetails</Role>
      <ShortName>Segment information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/SegmentInformation</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2415401 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/DebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/Debt</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2416402 - Disclosure - Commitments and Contingencies  - Future Minimum Lease Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails</Role>
      <ShortName>Commitments and Contingencies  - Future Minimum Lease Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2416403 - Disclosure - Commitments and Contingencies  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/CommitmentsAndContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2418402 - Disclosure - Restructuring  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RestructuringNarrativeDetails</Role>
      <ShortName>Restructuring  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2418403 - Disclosure - Restructuring  - Summary of Charges in Consolidated Statement of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RestructuringSummaryOfChargesInConsolidatedStatementOfOperationsDetails</Role>
      <ShortName>Restructuring  - Summary of Charges in Consolidated Statement of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2418404 - Disclosure - Restructuring  - Summary of Balance Sheet Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/RestructuringSummaryOfBalanceSheetActivityDetails</Role>
      <ShortName>Restructuring  - Summary of Balance Sheet Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2419401 - Disclosure - Subsequent events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.ni.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.ni.com/role/SubsequentEvents</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="nati-20191231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - nati-20191231x10k.htm</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - nati-20191231x10k.htm</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>90</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-K" original="nati-20191231x10k.htm">nati-20191231x10k.htm</File>
    <File>nati-20191231.xsd</File>
    <File>nati-20191231_cal.xml</File>
    <File>nati-20191231_def.xml</File>
    <File>nati-20191231_lab.xml</File>
    <File>nati-20191231_pre.xml</File>
    <File>nati-20191231x10kexhibit1033.htm</File>
    <File>nati-20191231x10kexhibit1034.htm</File>
    <File>nati-20191231x10kexhibit211.htm</File>
    <File>nati-20191231x10kexhibit231.htm</File>
    <File>nati-20191231x10kexhibit311.htm</File>
    <File>nati-20191231x10kexhibit312.htm</File>
    <File>nati-20191231x10kexhibit321.htm</File>
    <File>nati-20191231x10kexhibit42.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>nati-20171231x10kg001a12.jpg</File>
    <File>tschart19a01.gif</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/currency/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
