Digital technologies may make some tasks, jobs and firms more resilient to unanticipated shocks. We extract data from over 200 million U.S. job postings to construct an index for firms’ resilience to the Covid-19 pandemic by assessing the work-from-home (WFH) feasibility of their labor demand. Using a difference-in-differences framework, we find that public firms with high pre-pandemic WFH index values had significantly higher sales, net incomes, and stock returns than their peers during the pandemic. Our results indicate that firms with higher digital resilience, as measured through our pre-pandemic WFH index, performed significantly better in general, and in non-essential industries in particular, where WFH feasibility was necessary to continue operation. The ability to use digital technologies to work remotely also mattered more in non-high-tech industries than in high-tech ones. Lastly, we find evidence that firms with lower pre-pandemic WFH feasibility attempted to catch up to their more resilient competitors via greater software investment. This is consistent with a complementarity between digital technologies and WFH practices. Our study’s results are robust to a variety of empirical specifications and provide a first look at how WFH practices improved resilience to a major, unanticipated social and economic shock.