{"id":240650,"date":"2021-05-02T15:30:46","date_gmt":"2021-05-02T12:30:46","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-replace-any-character-with-newlines-in-notepad\/"},"modified":"2021-05-02T15:30:46","modified_gmt":"2021-05-02T12:30:46","slug":"how-to-replace-any-character-with-newlines-in-notepad","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-replace-any-character-with-newlines-in-notepad\/","title":{"rendered":"#How to Replace Any Character with Newlines in Notepad++"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3bf72cb7c5e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3bf72cb7c5e\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-replace-any-character-with-newlines-in-notepad\/#Convert_Any_Character_into_a_Newline_with_Notepad\" >Convert Any Character into a Newline with Notepad++<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-replace-any-character-with-newlines-in-notepad\/#How_to_Convert_a_Newline_Character_into_Any_Other_Separator\" >How to Convert a Newline Character into Any Other Separator<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Replace Any Character with Newlines in Notepad++&#8221;<\/strong><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-724263\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/comma_separated_hero_1.jpg?width=1200&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Converting a Comma-Separated List in Notepad++\" width=\"1200\" height=\"555\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you have a list of values in a text file separated by a character (such as a comma or pipe) but would rather have each item on its own line, you can do the newline conversion automatically in Notepad++. Here\u2019s how.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Convert_Any_Character_into_a_Newline_with_Notepad\"><\/span>Convert Any Character into a Newline with Notepad++<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Notepad++ includes a feature to replace any separator in your text files with a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Newline\">newline character<\/a>, which is a special invisible character that signifies the end of a line and the beginning of a new one. So if you have, say, a list of comma-separated values (for example: \u201cWindows, iPhone, Mac, Android\u201d), you can put each item in the list on a new line.<\/p>\n<p>To do this, <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">download<\/a> the free <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/notepad-plus-plus.org\/\">Notepad++<\/a> app and install it on your computer. Then, launch the app from the Start menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723906\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/open-notepad-plus-plus.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Launch Notepad++ in the Windows Start menu.\" width=\"650\" height=\"266\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>In the Notepad++ window, open the text file that includes the list that you want to convert. Alternately, you can paste your item list on a line.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723907\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/paste-items-list.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A Notepad++ window showing a comma-separated list.\" width=\"650\" height=\"264\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Next, click the \u201cSearch\u201d menu and select \u201cReplace.\u201d Alternately, you can press Ctrl+H on your keyboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723908\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/replace-notepad-plus-plus1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Select Search &gt; Replace in Notepad++.\" width=\"650\" height=\"407\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>In the Replace window that opens, click the \u201cFind What\u201d text entry box and type the current item separator. In our example case, our items are separated by a comma and a space, so we\u2019ll type a comma and then press Space. If your items are separated by pipes only, type the pipe character (\u201c|\u201d).<\/p>\n<p>In the \u201cReplace With\u201d box, type this:<\/p>\n<pre>n<\/pre>\n<p>Next, locate the \u201cSearch Mode\u201d box and select \u201cExtended.\u201d This allows the replace action to convert \u201cn\u201d into a newline character. Then, click \u201cReplace All\u201d on the right side of the window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723909\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/convert-comma-new-line.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"In the &quot;Replace&quot; window, enter the proper values and click &quot;Replace All.&quot;\" width=\"650\" height=\"373\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>And just like magic, each item in your list will now be on its own line.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723910\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/comma-new-line.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A newline separated list in Notepad++.\" width=\"650\" height=\"315\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you want to reverse the process, just open Search &gt; Replace in the menu again. In the \u201cFind What\u201d box, enter \u201cn\u201d. In the Replace with box, type the character that you want to replace it with. Make sure \u201cExtended\u201d is selected and click \u201cReplace All,\u201d and your list will go back to being separated by a standard character, such as a comma or pipe.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Convert_a_Newline_Character_into_Any_Other_Separator\"><\/span>How to Convert a Newline Character into Any Other Separator<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Likewise, you can also replace the newline character with any other separator using the same method as described above in Notepad++. (There are only a few minor differences in the process due to the different ways that various platforms handle newlines.)<\/p>\n<p>To do this, open Notepad++ and the text file that you want to convert or paste your items list into.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723911\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/paste-list.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Another newline-separated item list in Notepad++.\" width=\"650\" height=\"285\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>In your Notepad++ window, click the \u201cEdit\u201d menu and select Blank Operations &gt; EOL to Space. Here, EOL means \u201cEnd of Line,\u201d and this option converts the invisible newline characters into spaces.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-723912 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/eol-to-space.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"In the &quot;Edit&quot; menu, select &quot;Blank Operations&quot; and &quot;EOL to Space&quot; option in Notepad++.\" width=\"650\" height=\"316\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>After that, you\u2019ll find that all your items are now on a single line separated by a space.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723913\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/items-one-line.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A list of items on one line in Notepad++.\" width=\"621\" height=\"277\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To convert this into a comma-separated list using Notepad++, click Search &gt; Replace in the menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723914\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/search-replace.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Select Search &gt; Replace in Notepad++.\" width=\"650\" height=\"419\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>In the \u201cReplace\u201d window, click the \u201cFind What\u201d box and press Space. Then, place your cursor in \u201cReplace With\u201d and type the character that you\u2019d like to replace space with, such as comma (\u201c,\u201d) or a command and a space for a human-readable format.<\/p>\n<p>When you\u2019re ready, click \u201cReplace All\u201d on the right.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723915\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/new-line-comma.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"In the &quot;Replace&quot; window, enter the proper values and click &quot;Replace All.&quot;\" width=\"650\" height=\"364\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Your list items will now be separated by the new separator you chose.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723916\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/new-line-comma-separator.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A comma-separated item list in Notepad++.\" width=\"621\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Repeat this as often as you\u2019d like, and you\u2019ll have all your lists in perfect shape quickly.<\/p>\n<p>By the way, if you don\u2019t like Notepad++, you can find and replace text using Microsoft Word as well. Using that option, you can search for any character and convert it into the one of your choice.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Find and Replace Text in Microsoft Word<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/723899\/how-to-replace-any-character-with-newlines-in-notepad\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Replace Any Character with Newlines in Notepad++&#8221; If you have a list of values in a text file separated by a character (such as a comma or pipe) but would rather have each item on its own line, you can do the newline conversion automatically in Notepad++. Here\u2019s how. Convert Any Character into&#8230;<\/p>\n","protected":false},"author":1,"featured_media":240651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/04\/comma_separated_hero_1.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-240650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/240650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=240650"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/240650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/240651"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=240650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=240650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=240650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}