v3.24.0.1

Commitments and Contingencies - Narrative (Details) - USD ($) $ in Thousands | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Commitments And Contingencies [Line Items] |  |
Unrecorded purchase commitment | $ 202,800 |
Letters of credit outstanding | 37,500 | $ 37,700
Manufacturing |  |
Commitments And Contingencies [Line Items] |  |
Purchase obligation | 131,500 |
Content Publishers |  |
Commitments And Contingencies [Line Items] |  |
Purchase obligation | 286,078 |
Content Publishers | Accounts Payable |  |
Commitments And Contingencies [Line Items] |  |
Purchase obligation | 59,200 |
Content Publishers | Other Long-Term Liabilities |  |
Commitments And Contingencies [Line Items] |  |
Purchase obligation | $ 24,100 |

X
- Definition Commitments and contingencies. + References No definition available. + Details
Name: | roku_CommitmentsAndContingenciesLineItems
Namespace Prefix: | roku_
Data Type: | xbrli:stringItemType
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 Minimum amount of purchase arrangement in which the entity has agreed to expend funds to procure goods or services from a supplier. + References No definition available. + Details
Name: | us-gaap_PurchaseObligation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of the unrecorded obligation to transfer funds in the future for fixed or minimum amounts or quantities of goods or services at fixed or minimum prices (for example, as in take-or-pay contracts or throughput contracts). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 440 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482648/440-10-50-4 + Details
Name: | us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | srt_ProductOrServiceAxis=roku_ManufacturingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=roku_ContentPublishersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_AccountsPayableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherNoncurrentLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |