PurposeDrug sales facilitated through digital communication on the surface web and on darknet cryptomarkets have increased during the past two decades. This has resulted in an increase in drug law enforcement efforts to combat these markets and a subsequent increase in judicial sentencing of people selling drugs online. The aim of this study was to analyze how Swedish courts describe sentenced sellers and how the courts apply case law.Design/methodology/approachThe empirical material consists of 71 sentencing documents produced by Swedish courts in cases of online drug selling between January 1, 2010 and January 1, 2020. In total, 99 sentenced persons occur in the documents. Using a qualitative research design, the authors analyzed the material through thematic text analysis.FindingsOverall, in their descriptions of online drug sale operations, the courts’ characterizations of the concepts of street capital and digital capital show a dichotomy. These forms of capital are situationally described as both aggravating and mitigating aspects in the application of case law, indicating that it may be fruitful to view both street and digital capital as resources used on contemporary drug markets in general.Originality/valueVery little research exists into how judicial systems describe and perceive the developing phenomenon of online drug sales. Using a relatively large sample from a decade of sentencing, the authors provide an analysis of how Swedish courts view and valuate capital forms in the online drugs trade.