The tubular toe foam protectors are often used to protect the toes and help separate the toes if there is a problem between the toes. These toes foams come in a larger size for the big toe and smaller sizes for the lessor toes. Some have a double thickness on part of the foam so that there can be even more protection. The are a bit bulky, but are soft so the do compress down and can easily be worn in the shoes. The come in short and longer lengths. The longer length of the tubular toe foam can be cut down to the correct length.
You can buy the tubular toe foam protectors here.