The leaves of Allium ursinum are edible; they can be used as salad, herb, boiled as a vegetable, in soup, or as an ingredient for a sauce that may be a substitute for pesto in lieu of basil. The stems are preserved by salting and eaten as a salad.