While bubbles are clear, foam is more of an opaque shade of white. And foamy urine is often a sign that there is protein in your urine, according to Northwestern Medicine. That could indicate that your kidneys are not functioning properly because they're responsible for filtering and keeping protein in your body.