Label-free, real-time detection of concentration gradients is demonstrated in a microfluidic H-filter, using an integrated photonic crystal slab sensor to monitor sample refractive index with spatial resolution. The recorded diffusion profiles reveal root-mean-square diffusion lengths for non-fluorescing and non-absorbing molecules, both small (glucose, 180 Da) and large (bovine serum albumin, 67 kDa).