v3.24.0.1

Retirement Plans - Narrative (Details) - USD ($) | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Savings Plan |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
Employer contribution amount to plan | $ 0 | $ 0 | $ 0
UK and Korea Employees Defined Contribution Plan |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
Employer contribution amount to plan | $ 3,200,000 | $ 2,300,000 | $ 1,300,000

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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of discretionary contributions made by an employer to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=roku_TaxDeferredSavingsPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=roku_UKAndKoreaEmployeesDefinedContributionPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |