v3.24.0.1
Restructuring - Restructuring and Related Costs (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Restructuring Cost and Reserve [Line Items]      
Share-based payment arrangement, expense $ 14,027 $ 11,992 $ 9,164
2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 2,255 4,611  
Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 2,506 2,295  
Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 1,197    
Share-based payment arrangement, expense 101    
Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (27) 975  
Data Center Assets      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (224) 1,341 0
Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (224) 1,341  
Cost of revenue      
Restructuring Cost and Reserve [Line Items]      
Share-based payment arrangement, expense 740 768 577
Cost of revenue | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (47) 1,495  
Cost of revenue | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 177 154  
Cost of revenue | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 0 0  
Cost of revenue | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (224) 1,341  
Research and development      
Restructuring Cost and Reserve [Line Items]      
Share-based payment arrangement, expense 11,429 9,361 7,106
Research and development | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 1,572 1,719  
Research and development | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 1,581 1,311  
Research and development | Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 422    
Research and development | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (9) 408  
Research and development | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 0 0  
Marketing and sales      
Restructuring Cost and Reserve [Line Items]      
Share-based payment arrangement, expense 952 1,004 837
Marketing and sales | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 395 638  
Marketing and sales | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 396 404  
Marketing and sales | Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 308    
Marketing and sales | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (1) 234  
Marketing and sales | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 0 0  
General and administrative      
Restructuring Cost and Reserve [Line Items]      
Share-based payment arrangement, expense 906 859 $ 644
General and administrative | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 335 759  
General and administrative | Facilities Consolidation | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 352 426  
General and administrative | Severance and Other Personnel Costs | 2023 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges 467    
General and administrative | Severance and Other Personnel Costs | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges (17) 333  
General and administrative | Data Center Assets | 2022 Restructuring      
Restructuring Cost and Reserve [Line Items]      
Restructuring charges $ 0 $ 0