v3.8.0.1
Document and Entity Information - USD ($)
$ in Millions
12 Months Ended
Jan. 31, 2018
Mar. 07, 2018
Jul. 31, 2017
Entity Information [Line Items]      
Document Type 10-K    
Document Period End Date Jan. 31, 2018    
Amendment Flag false    
Entity Registrant Name Okta, Inc.    
Entity Central Index Key 0001660134    
Current Fiscal Year End Date --01-31    
Entity Filer Category Non-accelerated Filer    
Document Fiscal Year Focus 2018    
Document Period Focus FY    
Entity Well-Known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Public Float     $ 371.7
Class A Common Stock      
Entity Information [Line Items]      
Entity Common Stock, Shares Outstanding   73,880,045  
Class B Common Stock      
Entity Information [Line Items]      
Entity Common Stock, Shares Outstanding   30,776,974