Linlithgow is generally very safe for solo female travelers. The crime rate is quite low compared to other areas and the locals are friendly and helpful. You can comfortably explore the town, enjoy its historic sites, and partake in its culture and nightlife. Local law enforcement are notable and visible, providing an added sense of security. Just remember the usual travel safety practices like not displaying valuable items and being vigilant about your surroundings.