A selection of new jet substructure measurements are reported from the ALICE experiment at the CERN LHC in both proton-proton and heavy-ion collisions. These include the first fully corrected inclusive measurements of the groomed jet momentum fraction and the groomed jet radius, as well as the N-subjettiness distribution and the fragmentation distribution of reclustered subjets. We also report on the measurement of several groomed substructure observables of heavy-flavor jets in pp collisions, fragmentation functions and the new measurements of the radial distributions of D0 mesons or Λc+ baryons in jets. The measurements are compared to theoretical calculations and provide new constraints on the physics underlying parton fragmentation and jet quenching.