Since moving to Japan I've got in the habit of wearing slippers inside. Most homes here have the "genkan" which is a little area before the floor is raised where you stand to change from shoes to slippers.
Most homes also have specific slippers just for the bathroom too so you don't walk...