TextZap / Line counter
FREE ONLINE TEXT TOOLS
Line counter
Count text lines
✓ No sign-up✓ Local processing
Line counter
Line counter: what it does
Count physical lines in a list, log or plain text document.
How to use
Paste the text into the input field. Set any parameters described in the example, then press Process text and review the result.
Practical example
Input
A B C
Output
3
What should I know?
Blank lines and a final line break count as lines.
Are blank lines counted?
Yes. Blank lines and a final line break count as lines.
Explore all 200 text tools
Analysis · 25
Word counterCount words in textCharacter counterCount Unicode charactersSentence counterCount sentencesParagraph counterCount paragraphs separated by blank linesLine counterCount text linesReading time calculatorEstimate reading time at a chosen speedSpeaking time calculatorEstimate speaking timeWord frequency counterCount occurrences of each wordUnique word counterCount distinct words ignoring caseAverage word lengthCalculate average word lengthLongest word finderFind the longest wordShortest word finderFind the shortest wordUTF-8 byte counterMeasure UTF-8 byte lengthText compareCompare lines in two textsCharacter frequencyCount each character occurrenceText splitterSplit text into fixed-length chunksText mergerMerge two texts with a separatorDuplicate word removerKeep only the first occurrence of each wordWord replacerReplace whole wordsRemove emojisRemove emoji sequencesRemove special charactersKeep letters, digits and spacesRemove invisible charactersRemove zero-width and control charactersText alignmentAlign plain text linesText column formatterArrange lines into aligned columnsSmart quotes converterConvert straight quotes to typographic quotes
Formatting · 30
UppercaseConvert text to uppercaseLowercaseConvert text to lowercaseTitle caseCapitalize every wordSentence caseCapitalize sentence beginningsToggle caseSwap uppercase and lowercaseAlternating caseAlternate letter caseReverse textReverse character orderReverse linesReverse line orderReverse wordsReverse whitespace-separated wordsSort linesSort lines alphabeticallySort lines descendingSort lines in reverse alphabetical orderNumeric line sortSort numeric lines from smallest to largestAdd line numbersAdd sequential line numbersAdd line prefixAdd chosen text before every lineAdd line suffixAdd chosen text after every lineIndent textIndent each line with spacesWrap textWrap text at a chosen column widthShuffle linesRandomize line orderJoin linesJoin lines with a chosen separatorSplit textSplit text by a chosen delimiterAlphabetical word sorterSort words alphabeticallyDuplicate sentence removerRemove repeated sentencesDuplicate paragraph removerRemove repeated paragraphsWord scramblerShuffle letters within wordsSentence shufflerShuffle sentencesText to one lineJoin lines with spacesTab to spacesReplace tabs with four spacesSpaces to tabsReplace groups of four spaces with tabsText redaction toolMask emails and phone-like numbersText watermark generatorAdd a textual watermark to every line
Cleaning · 15
Remove duplicate linesKeep unique lines in original orderRemove empty linesRemove blank linesRemove extra spacesNormalize horizontal whitespaceRemove line breaksReplace line breaks with spacesRemove HTML tagsExtract text from HTML markupRemove punctuationRemove Unicode punctuationRemove numbersRemove numeric charactersRemove lettersRemove alphabetic charactersRemove whitespaceRemove all whitespaceRemove accentsRemove combining accent marksTrim linesTrim leading and trailing spacesRemove line numbersRemove leading numeric list markersFilter linesKeep lines containing chosen textExclude linesRemove lines containing chosen textFind and replaceReplace literal text occurrences
Generators · 20
Lorem ipsum generatorGenerate placeholder paragraphsRandom word generatorPick random words from a supplied list or sample vocabularyText repeaterRepeat text a chosen number of timesNumber list generatorGenerate a sequence of integersRandom number listGenerate random integers from 0 to a chosen maximumAlphabet generatorGenerate the alphabet for the selected languageBullet list generatorTurn lines into bullet pointsMarkdown list generatorGenerate Markdown list itemsHTML list generatorGenerate escaped HTML list markupQuote linesWrap each line in quotation marksMarkdown quote generatorTurn lines into Markdown blockquotesRandom string generatorGenerate random alphanumeric charactersUUID generatorGenerate random version 4 UUIDsInitials generatorGenerate initials from wordsText divider generatorGenerate a repeated divider characterQR code generatorGenerate a QR code locally and download PNGASCII art generatorCreate a framed ASCII text bannerRandom username generatorGenerate random usernamesRandom PIN generatorGenerate random numeric PINsRandom date generatorGenerate random dates in a chosen range
Conversion · 30
Text to binaryEncode UTF-8 text as binary bytesBinary to textDecode binary UTF-8 bytesText to hexEncode UTF-8 text as hexadecimal bytesHex to textDecode hexadecimal UTF-8 bytesBase64 encodeEncode UTF-8 text in Base64Base64 decodeDecode Base64 UTF-8 textURL encodePercent-encode a URL componentURL decodeDecode a percent-encoded URL componentHTML encodeEscape HTML special charactersHTML decodeDecode HTML character referencesText to Morse codeEncode Latin letters and digits as MorseMorse code to textDecode Morse symbols into Latin textROT13 converterRotate Latin letters by 13 positionsCaesar cipherShift Latin letters by a chosen offsetText to UnicodeList Unicode code pointsUnicode to textDecode U+ hexadecimal code pointsJSON formatterPretty-print valid JSONJSON minifierCompact valid JSONLines to JSON arrayConvert lines into a JSON string arrayJSON array to linesConvert a JSON array into linesJSON to XMLConvert JSON into structured XMLXML to JSONConvert XML elements and attributes to JSONJSON to YAMLConvert JSON into YAMLYAML to JSONConvert basic YAML mappings and lists to JSONCSV to TSVConvert comma-separated rows to tab-separated rowsTSV to CSVConvert tab-separated rows to CSVCSV column extractorExtract a CSV column by numberCSV transposeSwap CSV rows and columnsHTML table to CSVExtract cells from the first HTML tableDecimal to RomanConvert integers from 1 to 3999
SEO & extraction · 35
URL slug generatorCreate a clean URL slugKeyword density checkerCalculate frequency and percentage of wordsKeyword occurrence counterCount literal keyword occurrences ignoring caseExtract emailsExtract common email address patternsExtract URLsExtract HTTP and HTTPS URLsExtract numbersExtract signed integers and decimalsExtract hashtagsExtract unique hashtagsExtract mentionsExtract social media mentionsMeta title length checkerMeasure title length against a chosen character targetMeta description length checkerMeasure description length against a chosen targetN-gram counterCount consecutive word groupsExtract domainsExtract hostnames from web URLsText truncatorLimit text to a chosen character countExtract HTML headingsExtract H1 through H6 headings from HTMLExtract HTML linksExtract href attributes from HTML anchorsReadability checkerAnalyze sentence length and long wordsFlesch reading easeEstimate English Flesch reading easeSyllable counterEstimate syllables using language-specific vowel rulesEssay word counterTrack essay word count against a targetText similarity checkerCompare unique word sets using Jaccard similarityStop words removerRemove common words using the list for the selected languageLong sentence finderFind sentences exceeding a word limitGoogle SERP previewPreview a sample search result snippetOpen Graph generatorGenerate escaped social sharing meta tagsRobots.txt generatorGenerate robots.txt from disallowed pathsSitemap XML generatorGenerate sitemap from absolute URLs, one per lineHreflang generatorEnter language code and URL on each lineCanonical tag generatorGenerate canonical tag from absolute URLSchema markup generatorEnter website name and URL on separate linesMeta tag generatorEnter title and description on separate linesTwitter card generatorEnter title, description and image URL on separate linesUTM builderEnter URL, source, medium and campaign on separate linesURL parserInspect URL componentsURL cleanerRemove common tracking parametersRedirect generatorEnter old path and new absolute URL on separate lines
Social Media · 20
Fancy text generatorGenerate several Unicode text stylesInstagram font generatorGenerate Unicode styles for InstagramBold text generatorConvert Latin letters to bold UnicodeItalic text generatorConvert Latin letters to italic UnicodeStrikethrough text generatorAdd combining strikethrough marksUpside down textFlip and reverse supported charactersSmall text generatorConvert letters to superscript where availableInvisible text generatorGenerate blank-looking Unicode charactersInstagram bio counterCount characters against a 150-character targetHashtag generatorTurn comma-separated phrases into hashtagsFacebook character counterCount post characters against a 63206 character reference limitInstagram caption counterCount caption characters against a 2200 character reference limitTikTok bio counterCount bio characters against an 80 character reference limitYouTube title counterCount title characters against a 100 character reference limitYouTube description counterCount description characters against a 5000 character reference limitX character counterEstimate plain text length against a 280 character target, not official weighted countingLinkedIn post counterCount post characters against a 3000 character reference limitBubble text generatorConvert Latin letters and digits to circled Unicode charactersSquare text generatorConvert Latin letters to squared Unicode capitalsGlitch text generatorAdd decorative combining marks to text
Developer Tools · 25
CSV to JSONConvert CSV with headers into JSON objectsJSON to CSVConvert JSON objects into CSVCSV to HTML tableGenerate escaped HTML table markup from CSVMarkdown to HTMLConvert basic Markdown syntax to HTMLHTML to MarkdownConvert common HTML elements to MarkdownXML formatterValidate and indent XML markupRegex testerFind regular expression matchesSHA-256 generatorCalculate a SHA-256 digest locallyPassword generatorGenerate cryptographically random passwordsString escape / unescapeEscape or unescape JSON string contentJSON validatorValidate JSON syntax and report errorsXML validatorValidate XML syntax in your browserJWT decoderDecode JWT header and payload without verifying signaturesUnix timestamp converterConvert Unix seconds or milliseconds and ISO datesSHA-512 generatorCalculate a SHA-512 hash of UTF-8 text over HTTPSCron expression generatorGenerate a five-field cron expression from five linesHTML formatterFormat HTML markupHTML minifierCompact HTML markup conservativelyCSS formatterIndent CSS rulesCSS minifierCompact CSS rulesJavaScript formatterIndent JavaScript codeJavaScript minifierCompact JavaScript conservativelyXML minifierSerialize valid XML compactlySQL formatterFormat common SQL clausesMD5 generatorCalculate legacy MD5 checksum, not for passwords