HOW-TO GUIDE
How to Solder a Ribbon Cable Connector Onto a PCB
By the OhmSavvy Research Team ·

Safety: hot tip, flux fumes and a powered-off board
- Disconnect the board from all power and batteries before soldering, and unplug any cable already attached to it.
- The tip runs at several hundred degrees Celsius. Keep it in its stand between joints and hold the board in a vise or holder, not in your hand.
- A long header means a lot of flux smoke. Work with ventilation or a fume extractor, and wash your hands after handling leaded solder.
Box header vs IDC connector: which part is soldered
A ribbon cable link has two halves. The board side is a header: either a plain dual-row pin header or a box header, which is the same pins inside a plastic shroud with a key slot in one long side. That is the part you solder. The cable side is an IDC (insulation displacement connector) socket. Its forked contacts cut through the ribbon's insulation and grip each conductor when the socket is pressed shut. IDC sockets are pressed, not soldered: heat would melt the cable and the socket body, and there is nothing for solder to bond to inside it.
| Part | How it is attached | Where it goes |
|---|---|---|
| Box (shrouded) header | Soldered through-hole | PCB; the shroud and key slot stop a reversed plug |
| Plain pin header | Soldered through-hole | PCB; cheaper, but nothing stops a reversed plug |
| IDC socket | Pressed onto the ribbon in a vise or IDC press | Cable end; plugs onto the header |
| Board-mount IDC connector | Pins soldered, ribbon pressed in | PCB, where the cable must be permanent |
If your board was designed for a plain pin header but you want a keyed connection, a box header with the same pin count and pitch normally fits the same holes. Check that the shroud clears nearby parts first, because it is wider than the pin rows.
Making up the cable is a separate job from the soldering. Cut the ribbon square, lay it in the open socket with the striped conductor at the pin 1 end, and close the socket evenly in a vise or IDC press so every contact goes through the insulation at the same depth. Pressing one end at a time can tilt the cover and leave conductors at the other end unconnected, which shows up later as an open pin in the continuity test.
Pitch and header sizes
Pitch is the center-to-center spacing between neighboring pins. The most common ribbon headers use 2.54 mm (0.1 in) pitch, paired with ribbon whose conductors sit 1.27 mm apart because the socket interleaves the two rows. Finer 2.0 mm and 1.27 mm pitch headers exist too; 1.27 mm parts are often surface-mount, especially on compact debug connectors. Read the pitch from the part's datasheet or measure across several pins with calipers and divide, since a header of the wrong pitch will not drop into the holes.
The number of joints adds up quickly. Every position is one joint, and the pin rows span (columns − 1) × pitch from the first pin to the last:
| Positions | Layout | Joints | Row span at 2.54 mm | Row span at 1.27 mm |
|---|---|---|---|---|
| 10 | 2 × 5 | 10 | 10.16 mm | 5.08 mm |
| 20 | 2 × 10 | 20 | 22.86 mm | 11.43 mm |
| 26 | 2 × 13 | 26 | 30.48 mm | 15.24 mm |
| 34 | 2 × 17 | 34 | 40.64 mm | 20.32 mm |
| 40 | 2 × 20 | 40 | 48.26 mm | 24.13 mm |
The process at a glance
01
Find pin 1
Square pad, silkscreen mark, key slot
02
Insert
Header flat on the component side
03
Tack corners
Two diagonally opposite pins
04
Check & adjust
Flat, square, right way round
05
Solder rows
One row, then the other
06
Inspect & test
Bridges, then pin-to-pin continuity
1Find pin 1 and the key orientation
Most boards mark pin 1 in at least one way: a square pad where the others are round, a small triangle or "1" in the silkscreen, or a header outline with a notch drawn in one long side to show where the box header's key slot belongs. On the header itself, look for a triangle molded into the plastic beside pin 1. On most dual-row ribbon headers, odd-numbered pins run along one row and even-numbered pins along the other, so pin 2 sits directly beside pin 1, but confirm this on the board's schematic or the header datasheet.
If the board has no markings, work back from the other end. The ribbon's striped conductor is pin 1 by convention, so plug a known-good cable into the device at the far end and trace which pin it reaches. A reversed box header is the most common mistake on this job and the most tedious to undo, so spend a minute here.
2Insert the header and tack two corner pins
Push the header in from the component side until its plastic base sits flat on the board. Turn the board over, holding the header in place with a finger, a piece of heat-resistant tape or by resting the board header-down on a flat surface. Solder just one corner pin. Then look at the header from the side: if it is tilted or lifted, press it flat while you reheat that one joint, and let it cool before you let go.
When it is flat and square, solder the pin in the diagonally opposite corner. Two tacks hold the header firmly without locking you in, because either joint can still be reheated to nudge it. This is the moment for the final orientation check against the pin 1 marks.
Why the corners first
3Solder the rows
Work along one row, then the other. For each pin, place the tip so it touches both the pad and the pin, wait a moment for both to heat, then feed solder into the joint (not onto the tip) until it wets all round and forms a small, concave cone. Two to three seconds per joint is typical on a plain signal pad. Pins connected to a ground or power plane soak up heat and may need a larger tip or a slightly longer dwell; if a joint looks dull and balled, it did not get hot enough, and our guide to fixing a cold solder joint covers the fix.
- Use thin solder. A smaller diameter makes it easier to feed just enough for one pin; see the solder wire diameter guide.
- Pick a suitable tip. A small chisel or a bevel tip touches pin and pad together; the soldering iron tip types guide compares shapes.
- Skip pins to spread heat. On a long header, doing every other pin and coming back for the rest stops one area of the plastic base from getting too hot.
- Wipe the tip often. Old flux and oxide on the tip slow heat transfer and drag solder where you do not want it.
4Check for bridges and excess solder
At 2.54 mm pitch bridges are uncommon if you feed solder sparingly, but a long header gives you a lot of chances. At 1.27 mm they are the main risk. Inspect every joint under good light and magnification, tilting the board so you look along the rows. A bridge shows as a solder web joining two pins; a fine one can hide in the shadow between rows.
To clear one, add flux, wipe the tip clean and draw it away from the bridge along the pin; surface tension usually pulls the surplus back onto each pin. Desoldering wick handles stubborn cases. The full technique is in how to prevent solder bridges, and removing excess solder from a small connector pin deals with joints that are bulbous rather than bridged. If you need to pull a header back out, see how to remove solder from a plated through hole.
5Run a pin-to-pin continuity test
A bridge you cannot see will still show up on a meter. With the board unpowered, set the meter to continuity or the lowest resistance range, touch the probes together and note the lead resistance. Then run the checks below. If you are new to these modes, start with how to use a multimeter.
| Check | Probe between | Good result | Bad result means |
|---|---|---|---|
| Joint | Top of the header pin and its trace or nearest via | Low ohms, near lead resistance | OL: cold or open joint |
| Neighbor | Each pin and the pins beside it | OL, or a reading the circuit explains | Low ohms: possible bridge |
| Through the cable | Header pin and matching pin at the far end | Low ohms, near lead resistance | OL: bad IDC press or wrong orientation |
Not every low neighbor reading is a fault. Several ground pins are often tied together on purpose, and pins linked through the board's circuit may read a few hundred ohms or more. Compare against the schematic before you start reworking joints. If the beeper chirps on and off as you hold the probes still, the problem may be the meter or its leads; see why a continuity beep is intermittent.
Which iron suits header work?
Header pins are small joints, so raw power matters less than a stable, adjustable temperature and a tip that recovers quickly on the ground-plane pins. Any temperature-controlled iron with a fine chisel tip will do it; ESD-safe construction is worth having when the header sits next to sensitive chips. Compare the options in our best soldering irons roundup. If your next job is a board-mounted control rather than a connector, see how to solder a replacement rotary encoder onto a circuit board.
Irons in our reviews

85W digital, ESD-safe station (70W iron) built for dedicated workbenches and professional use.

ESD safe with ±1°C idle stability and five presets; a 100W station for rows of identical header joints.

Up to 88W at 24V (about 60W on 20V USB-C PD) with an OLED display; suited to portability and field repairs.
As an Amazon Associate I earn from qualifying purchases. Prices and availability are shown on Amazon.
Frequently asked questions
Can you solder a ribbon cable directly to a PCB without a connector?
Yes, for a permanent link you can separate and strip each conductor and solder it into its own hole, but it is slow and the thin stranded wires break easily where the solder stops. Strain relief, such as a cable tie or a dab of adhesive, is essential. A header and IDC socket is usually quicker, neater and lets you unplug the board.
Which side of the ribbon cable is pin 1?
By convention the conductor with the colored stripe, often red, is pin 1. IDC sockets usually carry a small triangle beside pin 1 as well. When you press the socket onto the cable, line the striped conductor up with that triangle so the cable, socket and header all agree.
What temperature should I use to solder header pins?
It depends on the solder alloy, the tip and how much copper the pads connect to, so check your solder maker's recommendation. Many people work somewhere around 320 to 350 degrees Celsius for leaded solder on small header pins and a little hotter for lead-free. Pins tied to a ground plane may need more heat or a larger tip.
How do I fix a box header I soldered on backwards?
On a shrouded header the cleanest fix is often to cut the plastic shroud and pin strip away, then remove each pin one at a time and clear the holes with wick or a solder sucker. Fit a new header the right way round. Trying to pull a whole row out at once usually lifts pads.
Should I fit a straight or right-angle header for a ribbon cable?
Follow the board footprint and the enclosure. A straight header sends the cable upward, which suits boards with open space above them. A right-angle header lets the cable run flat along the board, handy in shallow cases or at a board edge. Both come in the same common pitches, but pin 1 on a right-angle part is easy to misread, so confirm it against the silkscreen before soldering.


