Recently someone posted a question regarding an inline device to attenuate their voltage on a 50 \$\Omega\$ coax by half (i.e. 6 dB). Because the question asked for commercial recommendations, it was closed. However, the question of how to create an attenuator that has the same input and output impedance is a reasonable one, I was not able to find a similar question, although my search was perhaps superficial. If this is a duplicate, and provides no new value, I will gladly delete it.
The easy part of the answer is a circuit that gives 6 dB attenuation with both input and output impedances matching 50 ohms. I will give that answer shortly. A harder part, is how to physically construct such a circuit such that the transition between coaxial cable and circuit and back to coax is not afflicted by reflections due to changing impedance. This difficulty is perhaps part of the reason why commercial in-line attenuators tend to be expensive. Any advice in this area will be a welcome addition.