Paste a messy ghazal and get clean, evenly spaced couplets in one step, ready to copy or download.
Quick Answer
The Urdu Ghazal Formatter tidies your ghazal in one step. It trims extra spaces, removes stray blank lines, and pairs your misras into clean couplets with even spacing. You can number the couplets, then copy or download the result. Your Urdu and its right-to-left flow stay intact, and everything runs in your browser.
Format Your Ghazal
Paste your ghazal with one misra (line) on each row.
Formatted ghazal
- Misras
- 0
- Couplets
- 0
- Lines cleaned
- 0
What the Urdu Ghazal Formatter Does
The Urdu Ghazal Formatter takes a ghazal that has been pasted from anywhere and cleans up its layout. It trims spaces at the start and end of each misra, collapses runs of spaces inside a line, and removes the stray blank lines that copying often leaves behind.
It then groups your misras into couplets, so each she’r sits together with a clear gap before the next. If you want, it can number the couplets for easy reference. The result is a tidy ghazal you can read, share, or paste into a post without fixing the spacing by hand.
Everything runs on your own device. Your ghazal is never uploaded or stored, so it is safe for unpublished work and private drafts.
How to Format a Ghazal
- Paste your ghazal. Put one misra on each line. The box is set for right-to-left Urdu, so your text reads naturally.
- Pick your options. Keep couplet grouping on for standard ghazal layout, and turn on numbering if you want each she’r labelled.
- Read the result. The formatted ghazal appears below, cleaned and grouped, with counts for misras and couplets.
- Copy or download. Use Copy Result for the clipboard, or Download .txt to save a clean text file.
How the Ghazal Formatting Works
The formatter reads your text line by line. For each line it removes leading and trailing spaces and turns any run of spaces or tabs into a single space, so words no longer drift apart. Empty lines are set aside at this stage, because the tool rebuilds the spacing itself.
Once the misras are clean, the formatter lays them out again. With couplet grouping on, it places two misras together as one she’r, then adds a single blank line before the next couplet. This gives the even, breathing layout that a ghazal is meant to have, whatever mess the original paste carried.
The tool only changes spacing and grouping. It never edits your words, your spelling, or your punctuation, so the poem you get back is the poem you put in, just laid out cleanly.
Grouping Misras Into Couplets
A ghazal is built from couplets, each called a she’r, and each she’r holds two misras. This formatter follows that structure by pairing your lines two at a time and separating the pairs with a blank line.
If your ghazal has an odd number of misras, the last line is kept on its own so nothing is lost. This can happen when a matla or a stray line slips in, and the visible count of misras and couplets helps you spot it. Turn grouping off when you want a plain, single-spaced list of lines instead.
Reading Your Formatted Result
The summary cards show three figures: the number of misras the tool found, the number of couplets it built, and how many lines were cleaned, which counts the blank or empty lines it removed. Together they confirm the shape of your ghazal at a glance.
The formatted ghazal sits below in a clear box, styled for comfortable Urdu reading. Because the layout is rebuilt from your clean misras, it looks the same whether your original had one blank line between couplets or ten.
A Worked Ghazal Example
A famous opening by Ghalib, pasted with uneven spacing:
ہزاروں خواہشیں ایسی کہ ہر خواہش پہ دم نکلے
بہت نکلے مرے ارمان لیکن پھر بھی کم نکلے
محبت میں نہیں ہے فرق جینے اور مرنے کا
اسی کو دیکھ کر جیتے ہیں جس کافر پہ دم نکلے
The live formatter is preparing this example…
The counts above come from the same function the tool uses, so the example reflects real behaviour. Press Load Example to try it in the box yourself.
Copy, Download, and Reuse
When the layout looks right, you have two easy ways to keep it. Copy Result places the formatted ghazal on your clipboard, ready to paste into a document, a post, or a message. Download .txt saves it as a plain text file that opens anywhere and keeps your Urdu intact.
Both outputs use the clean, grouped version you see on screen, including numbering if you turned it on. This makes the formatter a quick first step before you publish a ghazal or send it to a friend for feedback.
Who Uses This Ghazal Formatter
Poets use it to tidy a draft before sharing it, so the couplets read cleanly. Bloggers and editors use it to paste a ghazal into a post without wrestling with broken spacing. Students use it to lay out a ghazal for study, with each she’r clearly separated.
Social media writers also lean on it, because a clean, grouped ghazal looks far better in a caption or a card than a wall of uneven lines. In every case the tool saves the slow work of fixing spacing by hand.
Urdu, RTL, and Safe Formatting
The formatter is built for Urdu. The input and the result both run right to left, and the layout uses a Nastaliq-friendly font stack so your couplets look natural. Mixed Urdu and English lines are handled too, with each line kept in its own direction.
Because the tool changes only spacing and grouping, it is safe to run on any ghazal. It does not normalise letters, swap characters, or touch diacritics, so nothing about your text meaning or spelling changes when you format it.
Accuracy and Limits of the Formatter
The result is deterministic. The same ghazal with the same options always produces the same layout. The tool arranges your lines and cleans their spacing only. It does not check meter, rhyme, or grammar, and it does not judge your verse.
Good to know: couplet grouping simply pairs lines two at a time, so it assumes each misra sits on its own line. If two misras share a line, or one misra wraps onto two lines, split or join them first so the pairing matches your intended couplets.
Privacy and Data Processing
The formatter runs fully in your browser with standard web technology. Your ghazal is not uploaded, not stored, and not sent to any analytics service. When you close or refresh the page, the text is gone. This keeps it safe for unpublished verse and private drafts.
اکثر پوچھے جانے والے سوالات
اردو غزل فارمیٹر کیا ہے؟
یہ ایک مفت براؤزر ٹول ہے جو آپ کی غزل کی فالتو خالی جگہ اور خالی سطریں ہٹا کر مصرعوں کو صاف ستھرے اشعار میں ترتیب دیتا ہے۔
اسے کیسے استعمال کریں؟
ہر مصرع الگ سطر میں لکھیں یا پیسٹ کریں۔ فارمیٹ شدہ غزل خودکار طور پر نیچے دکھائی دیتی ہے جسے آپ کاپی یا ڈاؤن لوڈ کر سکتے ہیں۔
کیا یہ میرے الفاظ تبدیل کرتا ہے؟
نہیں۔ یہ صرف خالی جگہ اور ترتیب درست کرتا ہے۔ آپ کے الفاظ، ہجے اور اوقاف بالکل ویسے ہی رہتے ہیں۔
اشعار کیسے بنتے ہیں؟
ٹول ہر دو مصرعوں کو ایک شعر کے طور پر جوڑ دیتا ہے اور اگلے شعر سے پہلے ایک خالی سطر چھوڑ دیتا ہے۔
اگر مصرعوں کی تعداد طاق ہو تو کیا ہوگا؟
آخری مصرع اکیلا ہی رہتا ہے تاکہ کچھ ضائع نہ ہو۔ مصرعوں اور اشعار کی گنتی سے آپ اسے آسانی سے دیکھ سکتے ہیں۔
کیا میں اشعار کو نمبر دے سکتا ہوں؟
جی ہاں۔ “اشعار کو نمبر دیں” کا آپشن آن کریں تو ہر شعر پر نمبر لگ جاتا ہے۔
کیا میرا کلام محفوظ رہتا ہے؟
جی ہاں۔ سارا عمل آپ کے براؤزر میں ہوتا ہے۔ آپ کا کلام کہیں اپ لوڈ یا محفوظ نہیں ہوتا۔
کیا یہ ٹول مفت ہے؟
جی ہاں، یہ مکمل طور پر مفت ہے اور استعمال کے لیے کسی اکاؤنٹ کی ضرورت نہیں۔
کیا یہ موبائل پر کام کرتا ہے؟
جی ہاں۔ خانہ اور نتائج موبائل، ٹیبلیٹ اور کمپیوٹر تینوں پر کام کرتے ہیں۔
Explore More Free Urdu Tools
Counters, formatters, and analyzers built for real Urdu writing and poetry.
Open the Urdu Tools hubSources and standards
- Unicode Standard Annex #9, Bidirectional Algorithm. unicode.org/reports/tr9
- MDN Web Docs, String and clipboard methods. developer.mozilla.org
- W3C Internationalization, Structural markup and right-to-left text. w3.org/International
This free tool arranges and cleans the spacing of your ghazal only. It does not check meter, rhyme, spelling, or grammar, and it does not change your words. Couplet grouping assumes one misra per line. Please review the formatted result before you publish or share it.