HCl in Textile Dyeing: Alkali Neutralization, pH & Safety
Quick answer: HCl does not create color and does not fix color on fabric. In a dyeing mill, hydrochloric acid does three jobs: it neutralizes residual alkali after scouring/bleaching and alkaline washing, lowers the pH of process water or wastewater, and dissolves calcium scale in dyeing machines. Reactive dyes fix in an alkaline medium, not an acidic one. Never mix HCl with bleach or hypochlorite: it releases toxic chlorine gas.
Contents
- What HCl is and which specifications matter
- Does HCl fix color on fabric? Reactive dyes fix in an alkaline medium
- Textile wet-processing steps and the role of HCl
- The four places HCl is actually used
- HCl, H2SO4 or acetic acid for neutralization?
- Calculating how much 32% HCl neutralizes alkali
- Safety warning: never mix HCl with bleach or hypochlorite; never electrolyze brine yourself
- Companion chemicals in the dyeing chain and ZDHC documents
- Storage, materials, PPE and first aid
- Five common mistakes
- Other uses of HCl
- Frequently asked questions
- Buying 32% HCl for a dyeing mill
What HCl is and which specifications matter
Hydrochloric acid (HCl) is a solution of hydrogen chloride gas in water. It is a strong inorganic acid that dissociates completely, mixes with water in any proportion and gives off pungent fumes when left open. For dyeing mills the usual grade is the 32% solution. When it reacts with alkali or carbonate salts, HCl forms highly soluble chloride salts plus water (or water and CO2), so it leaves little residue.
| Parameter | HCl 32% |
|---|---|
| Formula, molar mass | HCl, 36.46 g/mol |
| CAS number, UN number, hazard class | 7647-01-0, UN 1789, Class 8 (corrosive) |
| Content | 32% ± 1% by mass |
| Density at 20 °C | about 1.16 g/cm³ |
| Color, odor | Colorless to slightly yellow, pungent |
| pH | below 1 |
| Solubility | Fully miscible with water |
A note when reading reference tables: the density and boiling point of hydrochloric acid change with concentration. Do not use values for fuming 36–37% acid or for more dilute solutions to convert 32% HCl. When converting mass to volume, use the density printed on the COA of the actual lot.
For HCl used in dyeing, engineers usually look at HCl content, density, iron (Fe) content and free chlorine. Excess iron can leave marks on white or pale fabric; free chlorine raises corrosion risk and can affect oxidation-sensitive dyes. Loc Thien supplies a COA and MSDS with each lot; COA results are reported as Pass or Fail for each parameter.
Does HCl fix color on fabric? Reactive dyes fix in an alkaline medium
No. Many older articles get this wrong, so it is worth stating clearly before discussing operations. For reactive dyes, the most widely used class for cotton and other cellulosic fibers, dyeing has three stages:
- Exhaustion. The dye moves from the bath onto the fiber in a near-neutral medium, helped by a neutral salt such as NaCl or Na2SO4 (for example 20–80 g/L, depending on the recipe). Salt pushes the dye onto the fiber, but no durable bond exists yet.
- Fixation. Alkali (soda ash Na2CO3, NaOH or a mix) raises the pH to about 10.5–11. In alkali, the OH groups of cellulose are ionized to Cell–O⁻, the reactive species that forms a covalent bond with the dye. A published study on Reactive Red 195 reports an optimum at pH 10.5, 60 °C, 40 g/L salt and roughly 10–12 g/L soda. Depending on the reactive group, reactive dyes can react anywhere in pH 8–12, but that is still the alkaline range.
- Washing, neutralizing and soaping. In alkali, part of the dye hydrolyzes and does not bond to the fiber. This portion must be washed out for good color fastness. Only at this stage is the pH lowered with acid.
The practical consequence: some older sources advise lowering the pH of a reactive dyebath with HCl to “fix” color. That advice is chemically backwards. Lowering the pH of a bath that is fixing stops the reaction, giving weak, uneven color. Acid, including HCl, comes in only after fixation, to neutralize residual alkali before soaping.
Acid dyes for wool, silk and nylon are the opposite case: they run in a weakly acidic medium, usually with acetic or formic acid. Even there, HCl is not the default choice because it is highly corrosive and hard to control.
Textile wet-processing steps and the role of HCl
The table below lists the wet-processing steps of a cotton dyehouse, the typical pH of each step, and whether HCl has a role.
| Step | Typical pH range | Role of HCl | Operating notes |
|---|---|---|---|
| Scouring/bleaching with NaOH, H2O2 | Strongly alkaline | Not used here | Fabric leaves scouring with residual alkali on the fiber |
| Alkaline wash and neutralization after scouring | From alkaline to near neutral | Neutralizes residual alkali, brings fabric near neutral | HCl or another acid may be used; check pH of the final rinse |
| Process water and bath make-up | Depends on water alkalinity | Lowers pH, reduces alkalinity of make-up water | Dose with a metering pump, measure pH online |
| Reactive dye exhaustion | Near neutral, with salt | No role | NaCl or Na2SO4 assists exhaustion |
| Reactive dye fixation | Alkaline, pH about 10.5–11 | Not used; acid would spoil fixation | pH set by soda ash and NaOH |
| Neutralizing and washing after dyeing | Lowered from alkaline to near neutral | May be used to neutralize residual alkali before soaping | Many mills use dilute acetic acid here |
| Descaling dyeing machines and pipework | Acidic | Dissolves calcium carbonate scale | Flush thoroughly; check stainless steel compatibility |
| Treating alkaline wastewater | Alkaline | Lowers pH to the discharge range | Dose in steps, monitor pH continuously |
What the table shows: HCl appears in the alkali-reduction and descaling steps, and is absent from exhaustion and fixation.
The four places HCl is actually used
1. Neutralizing residual alkali after scouring and alkaline wash. After desizing and scouring with NaOH, Na2CO3 and H2O2, a film of alkali remains on the fabric. If it is not brought down, it carries into the dyebath, the pH is off from the start and the color is uneven between batches. Acid is used to bring the wash water pH close to neutral. Chemically HCl can do this (NaOH + HCl → NaCl + H2O), but in many real processes, mills dyeing cotton with reactive dyes use dilute acetic acid at about 0.5–1 g/L in the neutralization step before soaping. Which acid to choose depends on the dye process, the water quality and the equipment materials of each mill.
2. Adjusting the pH of process water and make-up water. Water with high alkalinity (much bicarbonate) makes bath pH hard to stabilize. Dosing HCl to lower alkalinity before chemicals are added lets every batch start from the same condition. This is water preparation, not a color-fixing step. The pH and chemical recipe for each dye is the mill’s own operating data and should follow the dye supplier’s technical guide.
3. Descaling equipment. Hard water leaves calcium carbonate scale in dye vats, heat exchangers and pipework. HCl dissolves it: CaCO3 + 2HCl → CaCl2 + CO2 + H2O. Calcium chloride is highly soluble, so the scale is carried away in solution. Circulate diluted solution, flush thoroughly with water afterward and check the equipment materials. Chloride ions cause pitting corrosion on stainless steel if the solution is left in contact.
4. Neutralizing alkaline wastewater. Wastewater after dyeing and alkaline washing usually has a high pH. Before it enters coagulation or biological treatment, the pH must be brought into a suitable range. Acid is dosed into a pH adjustment tank, controlled by an online probe. In large systems, mills weigh HCl against H2SO4 and whatever acid is on hand; see the comparison just below.
HCl is not a bleaching agent. Cotton is bleached with H2O2 or hypochlorite. Some older sources describe bringing acid together with bleaching powder to “bleach the fiber”. That is actually a reaction that releases chlorine gas and is very dangerous; see the safety section.
HCl, H2SO4 or acetic acid for neutralization?
There is no universal answer. Each acid has its own advantages and risks, and the choice depends on where it is dosed.
| Criterion | HCl | H2SO4 | Acetic acid |
|---|---|---|---|
| Strength | Strong, fully dissociated | Strong | Weak, buffers |
| Salt formed with calcium | CaCl2, highly soluble | CaSO4, sparingly soluble, can scale | Calcium acetate, soluble |
| Ion added to wastewater | Cl⁻ | SO4²⁻ | Acetate (adds to COD) |
| Equipment risk | Cl⁻ pits stainless steel | Strong heat release when diluted | Odor, low corrosion |
| Specific hazard | HCl fumes; forms Cl2 on contact with hypochlorite | Heat when diluting | Volatile, odor |
| Ease of controlling final pH | Easy to overshoot if dosed by hand | Easy to overshoot if dosed by hand | Hard to overshoot low thanks to buffering |
A practical way to choose: in wash baths, where a gentle drop is needed and overshoot must be avoided, dilute acetic acid is the choice of many mills. In large-volume wastewater neutralization tanks, HCl and H2SO4 are the two main candidates. Water rich in calcium calls for caution about CaSO4 scale with H2SO4; pipework and stainless equipment call for caution about chloride with HCl. In all three cases, a pH probe and a metering pump matter more than which acid is chosen.
Calculating how much 32% HCl neutralizes alkali
By moles, 1 mol of HCl neutralizes 1 mol of OH⁻. A 32% HCl solution has a density of about 1.16 g/cm³, so each liter contains about 371 g of HCl, roughly 10.2 mol, enough to neutralize about 407 g of NaOH.
Quick conversion for free NaOH:
- 1 kg NaOH (about 25 mol) needs about 0.91 kg of pure HCl.
- As 32% solution: about 2.85 kg, roughly 2.5 liters.
Worked example, for scale only: 1 m³ of wash water containing 2 g/L free NaOH, i.e. 2 kg NaOH, theoretically needs about 5.7 kg of 32% HCl (about 4.9 liters) to reach neutral. This helps picture the order of magnitude; it is not a mill’s dosing recipe.
For wastewater with a measured pH, if it contains only a strong base and no buffer system, the theoretical amount of 32% HCl to bring 1 m³ to pH 7 is:
| Starting pH | Theoretical 32% HCl for 1 m³ of water |
|---|---|
| 9 | about 1.1 g |
| 10 | about 11 g |
| 11 | about 114 g |
pH is a logarithmic scale, so each extra pH unit increases the acid required about tenfold. Real dyeing wastewater is not a clean strong base: it contains carbonate, bicarbonate, dyes, surfactants and organics that form a buffer system, so the actual acid demand is usually many times higher than the table. The safe method is to sample the wastewater, titrate or run a jar test, then dose step by step on the real system, reading the pH after each step. The discharge pH limit follows the environmental regulation in force and each mill’s permit.
Safety warning: never mix HCl with bleach or hypochlorite; never electrolyze brine yourself
HCl meeting hypochlorite releases chlorine gas. Bleach solution (NaOCl) and bleaching powder (calcium hypochlorite) are both hypochlorites. When they meet a strong acid, NaOCl + 2HCl → Cl2↑ + NaCl + H2O releases chlorine. Chlorine is toxic: the NIOSH ceiling limit is 0.5 ppm and the immediately dangerous to life or health (IDLH) level is 10 ppm. Therefore:
- Never mix HCl with bleach or bleaching powder; never share tanks, buckets or suction lines.
- Keep the HCl store separate from bleach and calcium hypochlorite stores. The HCl MSDS lists salts of oxyhalogen acids (hypochlorite, chlorate) as incompatible.
- Do not transport acid together with oxidizers, especially chlorates and nitric acid.
- If a mill both bleaches with hypochlorite and neutralizes with acid, the two wastewater streams must use separate tanks and pipework with flushing between the steps. If chlorine is suspected (sharp odor, stinging eyes, coughing), evacuate immediately and alert the safety officer.
Do not use acid to deal with residual chlorine. Residual chlorine left on fabric after hypochlorite bleaching is treated with reducing agents such as sodium thiosulfate, sodium bisulfite or H2O2 (the anti-chlor step), never with acid, because acid only releases more chlorine gas. For details on hypochlorite bleaching and anti-chlor treatment, see sodium hypochlorite bleaching in textile dyeing.
Do not make HCl yourself by electrolysis. Some web articles describe electrolyzing brine with a battery to “make HCl”. This is wrong and dangerous. Electrolysis of NaCl solution gives chlorine gas at the anode and hydrogen plus NaOH at the cathode (2NaCl + 2H2O → Cl2 + H2 + 2NaOH); the anode does not make HCl. Chlorine is toxic, and a mix of chlorine and hydrogen can also explode. Industrial HCl is bought from a manufacturer or supplier by the lot, with a COA and MSDS; a dyeing mill does not need to, and should not, make it. Students who want to understand how HCl is produced can read what is hydrochloric acid.
View from the Loc Thien Technical Department: “When a mill asks how to adjust a reactive dyebath with HCl, our first question back is at which step the pH is being measured. If it is the fixation bath, the bath must be alkaline and acid comes in afterward. And before discussing dose, confirm the acid store is not next to the bleach store. Those two points have to be settled before any calculation.” — Loc Thien Technical Department
Companion chemicals in the dyeing chain and ZDHC documents
HCl is only one link. The table below lists the industrial chemicals Loc Thien supplies for each step. Dyes, fixing agents and enzymes are not part of this range.
| Step | Chemicals supplied by Loc Thien |
|---|---|
| Scouring fabric | NaOH, H2O2 |
| Bleaching | H2O2 |
| Fixing reactive dyes (alkaline) | Soda ash (Na2CO3), NaOH |
| Neutralizing alkali, adjusting water pH, descaling | HCl, H2SO4 |
| Treating colored wastewater: coagulation, COD reduction | FeCl2 (30% solution), PAC, polymer, with H2O2 in the Fenton reaction |
On ZDHC documents: some Loc Thien products have documents related to the ZDHC MRSL; contact us to confirm the documents for each item. Mills working with international fashion brands often have to show chemical sourcing against the ZDHC MRSL; ask your supplier for documents covering the exact product rather than accepting a blanket statement. For a guide to implementing ZDHC in a dyehouse, see ZDHC implementation for textile dyeing mills.
Storage, materials, PPE and first aid
Storage. Keep HCl in a dry, cool place away from sunlight; keep containers closed because the solution gives off corrosive HCl vapor. Keep it away from the incompatibles in the MSDS: metals, hypochlorite, chlorate, concentrated H2SO4, aldehydes, sulfides and alkali. Provide bunding or drip trays under drums and tanks, and have an eyewash and emergency shower within reach.
Materials. Use drums, carboys and tanks made of acid-resistant plastic or a purpose-made lining for HCl solution; ask the tank and pipe supplier about compatibility with HCl at the mill’s working temperature. Do not use ordinary metal tanks, pipes or valves for HCl.
Dilution. Always add acid slowly to water while stirring; never pour water into concentrated acid. Do not pour acid straight into drains, watercourses or into a system holding hypochlorite.
Personal protection. Chemical splash goggles, gloves, acid-resistant clothing and boots. Work only in well-ventilated areas and do not breathe the vapor directly.
First aid. Skin: remove contaminated clothing and rinse with plenty of water. Eyes: rinse with running clean water for at least 15 minutes, keeping the eyelids open. Inhalation: move to fresh air. Swallowing: do not induce vomiting. In every case take the casualty to a medical facility and bring the product MSDS.
Five common mistakes
- Lowering the pH of a reactive dyebath with HCl during fixation. The fixation bath needs alkali. Acid comes in afterward, to neutralize.
- Putting the HCl store next to the bleach store, or sharing pumps and lines. One leak or one wrong valve is enough to release chlorine.
- Descaling stainless steel dyeing machines with HCl and leaving the solution in. Chloride causes pitting; flush thoroughly and check the pH of the final rinse.
- Dosing HCl by hand without measuring pH. pH is logarithmic; a small overshoot throws off a whole batch. Use an online pH probe and a metering pump.
- Using the theoretical table for real wastewater. Real wastewater has a buffer system; titrate or jar-test a sample, then dose in steps.
Other uses of HCl
Beyond dyeing, HCl is a widely used industrial acid. Main uses include pickling metal before welding, coating or plating; regenerating cation exchange resin in demineralization systems; pH adjustment in water treatment; cleaning oil and gas wells; and as a raw material for chloride salts such as FeCl3. An overview of the industries that use HCl and how to choose the concentration is in the 32–35% HCl handbook.
Frequently asked questions
Is HCl in textile dyeing a dye?
No. HCl does not create color and does not fix color on the fiber. It is an acid used to neutralize residual alkali, lower the pH of process water or wastewater, and descale equipment. Color comes from the dye; the pH of each step is set by soda ash, NaOH or acid.
Do reactive dyes need an acidic or an alkaline medium to fix?
Alkaline. Reactive dyes fix onto cellulose at about pH 10.5–11 with soda ash or NaOH, because alkali ionizes the OH groups of cellulose into the reactive species. Acid is used only afterward, to neutralize residual alkali before soaping. Acid dyes for wool, silk and nylon are the ones that run in a weakly acidic medium.
Should I use HCl, H2SO4 or acetic acid to neutralize alkali in a dyehouse?
It depends where it is dosed. In wash baths that need a gentle drop, many mills use dilute acetic acid because it buffers. In large wastewater neutralization tanks, HCl and H2SO4 are the two main choices: HCl gives soluble salts but adds chloride that attacks stainless steel; H2SO4 can form CaSO4 scale when the water is rich in calcium. A pH probe matters more than the type of acid.
Can HCl be used together with bleach or bleaching powder to bleach or remove chlorine?
No. HCl meeting hypochlorite (bleach, bleaching powder) releases toxic chlorine gas; the immediately dangerous level is 10 ppm per NIOSH. Never mix them, never share tanks or lines, and keep the stores apart. Residual chlorine is removed with reducing agents such as sodium thiosulfate, sodium bisulfite or H2O2, not acid.
Can I make HCl myself by electrolyzing brine?
You should not, and the web method that describes HCl forming at the anode is wrong. Electrolysis of NaCl gives chlorine gas at the anode, hydrogen and NaOH at the cathode. Chlorine is toxic, and chlorine mixed with hydrogen can explode. Industrial HCl is bought by the lot from a manufacturer or supplier, with a COA and MSDS.
How much 32% HCl neutralizes 1 kg of NaOH?
Theoretically, 1 kg of NaOH needs about 0.91 kg of pure HCl, i.e. about 2.85 kg of 32% HCl solution (about 2.5 liters). That is for free NaOH. Real wastewater has a buffer system and needs more; titrate or jar-test a sample and dose step by step.
Does descaling a dyeing machine with HCl damage stainless steel?
It can, if the solution is left in contact. Chloride causes pitting corrosion on stainless steel. Use a diluted solution, circulate for a short time, then flush thoroughly with water and check the rinse pH. Ask the machine maker about materials before descaling.
What information is needed for a quote on 32% HCl for a dyeing mill?
State the concentration needed, the quantity or monthly usage, the packaging (carboy, drum, IBC or tanker), the industrial park or delivery location, and the documents required such as the MSDS or a test-result sheet/COA (depends on the item, confirmed when quoting). Loc Thien responds with a quote within 15 minutes.
Buying 32% HCl for a dyeing mill
Loc Thien supplies 32% HCl in bulk to dyeing, plating and water-treatment plants, with a COA and MSDS for each lot. Packaging per the product page: 30-liter carboy, 200-liter drum, 1,000-liter IBC and 5–30-tonne tanker. Delivery: about 4 hours within Ho Chi Minh City, 24–48 hours to industrial parks in the South and Mekong Delta, 2–3 days to the North and Central regions. See specifications and order on the 32–35% HCl product page.
To receive a quote within 15 minutes, send the chemical name and quantity, your phone or Zalo number and the delivery industrial park through the contact page, by email at [email protected] or by hotline 0979 891 929. Loc Thien engineers will discuss technical specifications and how to lay out a safe store when HCl sits near other chemicals in your plant.