๐Ÿ’ผ AI Tool

LinkedIn Headline Generator

Generate 5 powerful LinkedIn headline options tailored to your role, skills, and career goals. Click any headline to copy it instantly.

๐Ÿ’ผ Your Profile Details
โœจ Your Headlines Click any headline to copy
โœฆ Sample output preview โ€” fill in your details and click Generate
Option 1
Role + Skills
Senior Software Engineer | React ยท Node.js ยท AWS | Building scalable systems at Infosys
172/220 chars
Option 2
Achievement
Helped 3 startups scale to 1M users | Full-Stack Engineer | Open to Senior roles in FinTech
156/220 chars
Option 3
Open to Opps
Software Engineer seeking Senior/Lead roles | 5 YOE | React, Python, System Design
136/220 chars
๐Ÿ‘๏ธ LinkedIn Preview
Rahul Sharma
Senior Software Engineer | React ยท Node.js ยท AWS | Building scalable systems at Infosys
const TOOL = 'linkedin'; renderLimitBadge(TOOL, 'rl-badge'); async function generateHeadlines() { const title = document.getElementById('lh-title').value.trim(); const exp = document.getElementById('lh-exp').value; const industry = document.getElementById('lh-industry').value.trim(); const skills = document.getElementById('lh-skills').value.trim(); const usp = document.getElementById('lh-usp').value.trim(); if (!title) { document.getElementById('lh-title').style.borderColor = 'var(--danger)'; return; } document.getElementById('lh-title').style.borderColor = ''; const { allowed } = checkLimit(TOOL); if (!allowed) { document.getElementById('lh-output').innerHTML = `
โ›” You've used all ${AI_LIMITS[TOOL]} free generations for today. Resets at IST midnight.
`; return; } const btn = document.getElementById('lh-btn'); btn.disabled = true; document.getElementById('lh-btn-text').textContent = 'Generating...'; document.getElementById('lh-spinner').style.display = 'inline-block'; const system = `You are a LinkedIn profile expert who writes compelling headlines for Indian professionals. LinkedIn headlines max 220 characters. Each headline should be distinct in style. Styles to use across the 5 headlines: 1. Role + Skills focused 2. Achievement / Impact focused 3. Open to opportunities / seeking 4. Value proposition focused 5. Creative / memorable Respond ONLY in JSON (no markdown): {"headlines":[{"text":"...","style":"...","tip":"short tip on when to use this"}]}`; const prompt = `Generate 5 LinkedIn headlines for: Job Title: ${title} Experience: ${exp} years ${industry ? `Industry: ${industry}` : ''} ${skills ? `Key Skills: ${skills}` : ''} ${usp ? `Goal/USP: ${usp}` : ''}`; try { const raw = await callAI(prompt, system, 1000); const json = JSON.parse(raw.replace(/```json|```/g, '').trim()); let html = ''; json.headlines.forEach((h, i) => { const len = h.text.length; const lenOk = len <= 220 ? 'ok' : 'warn'; const pct = Math.min(100, Math.round((len / 220) * 100)); const pctCol = pct > 90 ? '#f87171' : pct > 75 ? '#f59e0b' : 'var(--accent)'; html += `
Option ${i + 1} ยท ${escHtml(h.style)}
${escHtml(h.text)}
${len}/220 chars ${escHtml(h.tip)}
๐Ÿ“‹ Click to copy
`; }); // LinkedIn mockup with first headline html += `
๐Ÿ‘๏ธ LinkedIn Preview
${escHtml(title)}
${escHtml(json.headlines[0]?.text || '')}

Click any headline above to preview it here.

`; document.getElementById('lh-output').innerHTML = html; document.getElementById('lh-ghost').style.display = 'none'; consumeLimit(TOOL); renderLimitBadge(TOOL, 'rl-badge'); } catch(err) { renderAIError(err, 'lh-output', 'worker-notice'); } finally { btn.disabled = false; document.getElementById('lh-btn-text').textContent = '๐Ÿ’ผ Generate Headlines'; document.getElementById('lh-spinner').style.display = 'none'; } } function copyHeadline(card, text) { navigator.clipboard.writeText(text).then(() => { document.querySelectorAll('.headline-card').forEach(c => c.classList.remove('copied')); card.classList.add('copied'); const prev = document.getElementById('lp-preview-text'); if (prev) prev.textContent = text; }); } function escHtml(s) { return String(s).replace(/&/g,'&').replace(//g,'>'); }