v3.19.3.a.u2

Debt - Additional Information (Details) - USD ($) |  |  | 1 Months Ended | 12 Months Ended |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | ---
Nov. 18, 2019 | Feb. 19, 2019 | Jun. 30, 2017 | Dec. 31, 2019 | Nov. 19, 2019 | Dec. 31, 2018 | Jul. 18, 2018 | Jun. 30, 2018
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Outstanding debt |  |  |  |  |  | $ 0 |  |
Letters of credit outstanding |  |  |  | $ 31,800,000 |  |  |  |
Second Amendment To Restated 2014 Loan and Security Agreement |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Minimum current ratio required under financial covenant |  |  | 1.25% |  |  |  |  |
Second Amendment To Restated 2014 Loan and Security Agreement | LIBOR |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Basis spread on variable rate |  |  | 2.75% |  |  |  |  |
Second Amendment To Restated 2014 Loan and Security Agreement | Prime Rate |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Basis spread on variable rate |  |  | 1.00% |  |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Minimum |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Adjusted quick ratio |  |  |  | 1.00% |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Revolving Credit Facility |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument term, years |  | 4 years |  |  |  |  |  |
Maximum borrowing capacity |  | $ 100,000,000.0 |  |  | $ 100,000,000.0 |  |  |
Borrowings outstanding |  |  |  | $ 0 |  |  |  |
Letters of credit outstanding |  |  |  | 30,700,000 |  |  |  |
Available borrowing capacity |  |  |  | 69,300,000 |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Term Loan A Facility |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument term, years |  | 4 years |  |  |  |  |  |
Maximum borrowing capacity |  | $ 100,000,000.0 |  |  |  |  |  |
Amount drawn under debt facility | $ 100,000,000.0 |  |  |  |  |  |  |
Debt instrument, amortization description |  | Loans under the Term Loan A Facility will amortize in equal quarterly installments beginning on March 31, 2020, in an aggregate annual amount equal to (i) on or prior to December 31, 2021, 1.25% of the drawn principal amount of the Term Loan Facility or $1.25 million and (ii) thereafter, 2.50% of the drawn principal amount of the Term Loan Facility or $2.5 million, with the remaining balance payable on the maturity date of the Term Loan A Facility in February 2023. |  |  |  |  |  |
Debt instrument maturity month and year |  | 2023-02 |  |  |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Term Loan A Facility | On or Prior to December 31, 2021 |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Percentage of amortization on drawn principal amount |  | 1.25% |  |  |  |  |  |
Amortization, aggregate principal amount |  | $ 1,250,000 |  |  |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Term Loan A Facility | Thereafter December 31, 2021 |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Percentage of amortization on drawn principal amount |  | 2.50% |  |  |  |  |  |
Amortization, aggregate principal amount |  | $ 2,500,000 |  |  |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Term Loan A Facility | Adjusted One-Month LIBOR |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Applicable margin based on secured leverage ratio | 1.75% |  |  |  |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Uncommitted Incremental Facility |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Maximum borrowing capacity |  | $ 50,000,000.0 |  |  |  |  |  |
Debt to company's EBITDA, description |  | 1.0x of the Company’s EBITDA for the most recently completed four fiscal quarter period |  |  |  |  |  |
Morgan Stanley Senior Funding, Inc | Credit Agreement | Uncommitted Incremental Facility | Maximum |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Secured leverage ratio |  | 1.50% |  |  |  |  |  |
Silicon Valley Bank | Restated 2014 LSA |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  | 5,000,000.0 |  |  |  |
Silicon Valley Bank | Restated 2014 LSA | Revolving Credit Facility |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  | $ 30,000,000.0 |  |  |  |
Silicon Valley Bank | Third Amendment To Restated 2014 Loan and Security Agreement |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  |  |  | $ 5,000,000.0
Maximum borrowing capacity |  |  |  |  |  |  | $ 30,000,000.0 |

X
- Definition Debt instrument adjusted quick ratio. + References No definition available. + Details
Name: | roku_DebtInstrumentAdjustedQuickRatio
Namespace Prefix: | roku_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument amortization aggregate principal amount. + References No definition available. + Details
Name: | roku_DebtInstrumentAmortizationAggregatePrincipalAmount
Namespace Prefix: | roku_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt instrument amortization description. + References No definition available. + Details
Name: | roku_DebtInstrumentAmortizationDescription
Namespace Prefix: | roku_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument amortization percentage. + References No definition available. + Details
Name: | roku_DebtInstrumentAmortizationPercentage
Namespace Prefix: | roku_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument basis spread on variable rate applicable margin. + References No definition available. + Details
Name: | roku_DebtInstrumentBasisSpreadOnVariableRateApplicableMargin
Namespace Prefix: | roku_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument, covenant required minimum current ratio. + References No definition available. + Details
Name: | roku_DebtInstrumentCovenantRequiredMinimumCurrentRatio
Namespace Prefix: | roku_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument maturity month and year. + References No definition available. + Details
Name: | roku_DebtInstrumentMaturityMonthAndYear
Namespace Prefix: | roku_
Data Type: | xbrli:gYearMonthItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument secured leverage ratio. + References No definition available. + Details
Name: | roku_DebtInstrumentSecuredLeverageRatio
Namespace Prefix: | roku_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of debt to consolidated earnings before interest tax depreciation and amortization ratio. + References No definition available. + Details
Name: | roku_DescriptionOfDebtToConsolidatedEarningsBeforeInterestTaxDepreciationAndAmortizationRatio
Namespace Prefix: | roku_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Letter of credit maximum borrowing capacity. + References No definition available. + Details
Name: | roku_LetterOfCreditMaximumBorrowingCapacity
Namespace Prefix: | roku_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=109500613&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash inflow from a contractual arrangement with the lender, including letter of credit, standby letter of credit and revolving credit arrangements, under which borrowings can be made up to a specific amount at any point in time with maturities due beyond one year or the operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromLongTermLinesOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_DebtInstrumentAxis=roku_SecondAmendmentToRestatedTwentyFourteenLoanAndSecurityAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_PrimeRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=roku_MorganStanleySeniorFundingIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=roku_CreditAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=roku_TermLoanAFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentRedemptionPeriodAxis=us-gaap_DebtInstrumentRedemptionPeriodOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentRedemptionPeriodAxis=us-gaap_DebtInstrumentRedemptionPeriodTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=roku_AdjustedOneMonthLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=roku_UncommittedIncrementalFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=roku_SiliconValleyBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=roku_AmendedAndRestatedTwentyFourteenLoanAndSecurityAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=roku_ThirdAmendmentToRestatedTwentyFourteenLoanAndSecurityAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |