www.convertcsv.com Open in urlscan Pro
52.173.245.249  Public Scan

URL: https://www.convertcsv.com/csv-to-yaml.htm
Submission: On May 23 via manual from GB — Scanned from GB

Form analysis 1 forms found in the DOM

Name: frm1

<form id="frm1" name="frm1" class="form-inline" role="form" onsubmit="return false">
  <h3 class="headerBlue">Step 1: Select your input</h3><br>
  <div class="form-group w100">
    <ul class="nav nav-tabs">
      <li class="nav-item active"><a id="defaultTabLink" data-toggle="tab" href="#inputtext">Enter Data</a></li>
      <li class="nav-item"><a data-toggle="tab" href="#inputfile" class="nav-link">Choose File</a></li>
      <li class="nav-item"><a data-toggle="tab" href="#inputurl" class="nav-link">Enter URL</a></li>
    </ul>
    <br>
    <div class="tab-content">
      <div id="inputtext" class="tab-pane active">
        <textarea class="form-control" style="width: 90%;" rows="10" cols="80" id="txt1" onchange="if((document.getElementById('chkReplaceAccents')).checked)this.value=this.value.removeDiacritics();reprocessCsv()"
          onpaste="setTimeout(function(){ document.getElementById('btnRun').click() }, 10)" wrap="off" placeholder="Enter or paste CSV here"></textarea>
      </div>
      <div id="inputfile" class="tab-pane">
        <label xclass="form-control">Choose File<input type="file" id="f1" class="form-control" onchange="loadTextFile(this,assignText,event)" title="Choose a local CSV file"></label>
        <label for="txtEncoding"></label><span id="spanEncoding">Encoding</span>
        <select id="txtEncoding" class="form-control" title="Enter encoding for input file" onchange="loadTextFile(document.getElementById('f1'),assignText)">
          <option value="" selected="selected">-Default-</option>
          <option value="ISO-8859-1">ISO-8859-1 (Latin No. 1)</option>
          <option value="ISO-8859-2">ISO-8859-2 (Latin No. 2)</option>
          <option value="ISO-8859-3">ISO-8859-3 (Latin No. 3)</option>
          <option value="ISO-8859-4">ISO-8859-4 (Latin No. 4)</option>
          <option value="ISO-8859-5">ISO-8859-5 (Latin/Cyrillic)</option>
          <option value="ISO-8859-6">ISO-8859-6 (Latin/Arabic)</option>
          <option value="ISO-8859-7">ISO-8859-7 (Latin/Greek)</option>
          <option value="ISO-8859-8">ISO-8859-8 (Latin/Hebrew)</option>
          <option value="ISO-8859-9">ISO-8859-9 (Latin No. 5)</option>
          <option value="ISO-8859-13">ISO-8859-13 (Latin No. 7)</option>
          <option value="ISO-8859-15">ISO-8859-15 (Latin No. 9)</option>
          <option value="macintosh">Mac OS Roman</option>
          <option value="UTF-8">UTF-8</option>
          <option value="UTF-16">UTF-16</option>
          <option value="UTF-16BE">UTF-16 (Big-Endian)</option>
          <option value="UTF-16LE">UTF-16 (Little-Endian)</option>
          <option value="UTF-32">UTF-32</option>
          <option value="UTF-32BE">UTF-32 (Big-Endian)</option>
          <option value="UTF-32LE">UTF-32 (Little-Endian)</option>
          <option value="windows-1250">windows-1250 (Win East European)</option>
          <option value="windows-1251">windows-1251 (WinCyrillic)</option>
          <option value="windows-1252">windows-1252 (WinLatin-1)</option>
          <option value="windows-1253">windows-1253 (WinGreek)</option>
          <option value="windows-1254">windows-1254 (Win Turkish)</option>
          <option value="windows-1255">windows-1255 (Win Hebrew)</option>
          <option value="windows-1256">windows-1256 (Win Arabic)</option>
          <option value="windows-1257">windows-1257 (Win Baltic)</option>
          <option value="windows-1258">windows-1257 (Win Vietnamese)</option>
        </select>
      </div>
      <div id="inputurl" class="tab-pane">
        <label> Enter URL as data source <input type="text" size="40" value="" name="url" id="url" class="form-control" title="Enter the URL of a web page returning CSV">
        </label>
        <input type="button" id="Button1" class="btn btn-primary" value="Load URL" title="Load CSV via URL" onclick="loadURL(document.getElementById('url').value)">
      </div>
    </div>
    <div class="">
      <input type="button" class="btn btn-primary" value="Clear Input" onclick="clearPage()"> &nbsp; <input type="button" class="btn btn-primary" value="Example" onclick="runExample()">
    </div>
    <div class="panel panel-default">
      <div id="divInputCounts" class="panel-heading">&nbsp;</div>
    </div>
  </div>
  <h3 class="headerBlue">Step 2: Choose input options <small>(optional)</small></h3><a href="#" onclick="return false" data-toggle="collapse" data-target="#p3"> <span class="glyphicon glyphicon-chevron-down"></span></a>
  <hr class="noverticalspace">
  <fieldset class="scheduler-border collapse" id="p3">
    <legend class="scheduler-border">Input Options</legend>
    <label>
      <input type="checkbox" name="chkHeader" id="chkHeader" class="form-control" value="Y" onclick="parseAndOptions(CSV,true)" checked=""> First row is column names </label>&nbsp;&nbsp; <br>
    <label>Limit # of lines: <input type="text" id="txtRowLimit" class="form-control" size="5" maxlength="5" onblur="CSV.limit=this.value;parseAndOptions(CSV)" title="Specify how many records of input to convert"></label>
    <label>Skip # of Lines<input type="text" id="txtSkipLimit" class="form-control" size="3" maxlength="2" value="0" onblur="if (this.value != CSV.skip) { CSV.skip = this.value; parseAndOptions(CSV) }"
        title="Specify how many line to skip at the beginning of input"></label>
    <br>Field Separator: <label><input type="radio" name="sep" id="sepAuto" value="" onclick="CSV.autodetect=true;parseAndOptions(CSV)" checked=""> Auto Detect</label>
    <label><input type="radio" name="sep" id="sepComma" value="," onclick="CSV.autodetect=false;CSV.delimiter = this.value; parseAndOptions(CSV)"> ,</label>
    <label><input type="radio" name="sep" id="sepSemicolon" value=";" onclick="CSV.autodetect=false;CSV.delimiter = this.value; parseAndOptions(CSV)"> ;</label>
    <label><input type="radio" name="sep" id="sepColon" value=":" onclick="CSV.autodetect=false;CSV.delimiter = this.value; parseAndOptions(CSV)"> :</label>
    <label><input type="radio" name="sep" id="sepPipe" value="|" onclick="CSV.autodetect=false;CSV.delimiter = this.value; parseAndOptions(CSV)"> Bar-|</label>
    <label><input type="radio" name="sep" id="sepTab" value="\t" onclick="CSV.autodetect=false;CSV.delimiter = '\t'; parseAndOptions(CSV)"> Tab</label>
    <label><input type="radio" name="sep" id="sepCaret" value="^" onclick="CSV.autodetect=false;CSV.delimiter = this.value; parseAndOptions(CSV)"> Caret-^</label>
    <label><input type="radio" name="sep" id="sepSpace" value=" " onclick="CSV.autodetect=false;CSV.delimiter = this.value; parseAndOptions(CSV)"> Space</label>
    <br>
    <div class="form-group">
      <div class="checkbox">
        <label><input type="checkbox" value="Y" id="chkReplaceAccents" title="Replace Accent/Diacritical marks"
            onclick="if(this.checked)document.getElementById('txt1').value = document.getElementById('txt1').value.removeDiacritics();parseAndOptions(CSV)"> Replace Accents/Diacriticals</label>
      </div><br>
      <div class="checkbox">
        <label><input type="checkbox" value="Y" id="chkIgnoreDoubleQuote" onclick="CSV.ignoreQuote=this.checked;parseAndOptions(CSV,true)" title="Ignore the Quoting Character- either single or double quote"> Treat all Quoting Character as
          data</label>
      </div><br>
      <div class="checkbox">
        <label><input type="checkbox" value="'" id="chkInputQuote" onclick="setInputSingleQuote(this.checked)" title="Uses single quote for quoting character"> Input CSV Quoting Character is Apostrophe</label>
      </div><br>
      <div class="checkbox">
        <label><input type="checkbox" value="Y" id="chkDecodeLiterals" onclick="CSV.decodeBackslashLiterals=this.checked;parseAndOptions(CSV,true)" title="Input CSV uses backslash escaping like \n and \t"> CSV contains backslash escaping like \n, \t,
          and \,</label>
      </div>
    </div>
  </fieldset>
  <h3 class="headerBlue">Step 3: Choose output options <small>(optional)</small></h3><a href="#" onclick="return false" data-toggle="collapse" data-target="#p4"> <span class="glyphicon glyphicon-chevron-down"></span></a>
  <hr class="noverticalspace">
  <fieldset class="scheduler-border collapse" id="p4">
    <legend class="scheduler-border">Output Options</legend>
    <div id="divCols">
      <label> Display which field positions? <small>(Comma separated list where 1 is 1st field, 2=2nd,... i.e. 2,1,3,4)</small><br>
        <input type="text" id="txtCols" size="50" value="1,2,3,4" onchange="CSV.displayPoss=this.value;" title="i.e. 1,3,4,6 or field names- id,name,amount">
      </label>
      <input type="button" id="btnColsReset" value="Reset" onclick="CSV.displayPoss='';document.getElementById('txtCols').value=getFldPosArr(CSV);">
    </div>
    <div id="rqb">&nbsp;</div>
    <br>
    <table class="table table-bordered table-hover table-condensed">
      <tbody>
        <tr>
          <th colspan="4" class="text-center"> Sort CSV &nbsp; <label><input type="checkbox" id="chkIgnoreCase" value="Y" onclick="CSV.sortIgnoreCase=this.checked"> Ignore Case</label>
          </th>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <th>Field #</th>
          <th>Type</th>
          <th>Direction</th>
        </tr>
        <tr>
          <td>First By</td>
          <td><select id="selSortFld1" onchange="sortStr()">
              <option value="">-Choose-</option>
            </select></td>
          <td><select id="selSortType1" onchange="sortStr()">
              <option value="">-Default-</option>
              <option value="C">String</option>
              <option value="N">Numeric</option>
            </select></td>
          <td><select id="selSortAsc1" onchange="sortStr()">
              <option value="">Ascending</option>
              <option value="D">Descending</option>
            </select></td>
        </tr>
        <tr>
          <td>Then By</td>
          <td><select id="selSortFld2" onchange="sortStr()">
              <option value="">-Choose-</option>
            </select></td>
          <td><select id="selSortType2" onchange="sortStr()">
              <option value="">-Default-</option>
              <option value="C">String</option>
              <option value="N">Numeric</option>
            </select></td>
          <td><select id="selSortAsc2" onchange="sortStr()">
              <option value="">Ascending</option>
              <option value="D">Descending</option>
            </select></td>
        </tr>
        <tr>
          <td>Then By</td>
          <td><select id="selSortFld3" onchange="sortStr()">
              <option value="">-Choose-</option>
            </select></td>
          <td><select id="selSortType3" onchange="sortStr()">
              <option value="">-Default-</option>
              <option value="C">String</option>
              <option value="N">Numeric</option>
            </select></td>
          <td><select id="selSortAsc3" onchange="sortStr()">
              <option value="">Ascending</option>
              <option value="D">Descending</option>
            </select></td>
        </tr>
      </tbody>
    </table><br>
    <div id="divMinOptions"></div>
  </fieldset>
  <h3 class="headerBlue">Step 4: Generate output</h3>
  <br><input type="button" id="btnRun" class="btn btn-primary" value="Convert CSV To YAML" title="Convert CSV To YAML Format" onclick="runit();return false">
</form>

Text Content

CONVERT CSV TO YAML


USE THIS TOOL TO CONVERT CSV INTO A YAML DATA FILE.

FROM CSV/EXCEL

 * CSV To Delimited
 * CSV To Flat File
 * CSV To GeoJSON
 * CSV To HTML Table
 * CSV To JSON
 * CSV To KML
 * CSV To Markdown
 * CSV To Multi-line Data
 * CSV To PDF
 * CSV To SQL
 * CSV To Word
 * CSV To XML
 * CSV To YAML
 * Pivot CSV
 * Transpose CSV
 * Query CSV with SQL

TO CSV/EXCEL

 * Flat File to CSV
 * GeoJSON To CSV
 * HTML Links To CSV
 * HTML Table To CSV
 * JSON To CSV
 * KML To CSV
 * SQL To CSV
 * XML To CSV
 * YAML To CSV

DATA TOOLS

 * CSV Escape Tool
 * CSV Template Engine
 * EDA Tool
 * CSV Editor
 * Generate Test Data
 * Email Extractor
 * Phone Extractor
 * Split Text or CSV Files
 * URL Extractor
 * Extract via RegEx
 * CSV Home

YAML (YAML Ain't Markup Language) is a plain text file with a simple format for
storing data.
See also YAML to CSV


STEP 1: SELECT YOUR INPUT


 * Enter Data
 * Choose File
 * Enter URL


Choose File Encoding -Default- ISO-8859-1 (Latin No. 1) ISO-8859-2 (Latin No. 2)
ISO-8859-3 (Latin No. 3) ISO-8859-4 (Latin No. 4) ISO-8859-5 (Latin/Cyrillic)
ISO-8859-6 (Latin/Arabic) ISO-8859-7 (Latin/Greek) ISO-8859-8 (Latin/Hebrew)
ISO-8859-9 (Latin No. 5) ISO-8859-13 (Latin No. 7) ISO-8859-15 (Latin No. 9) Mac
OS Roman UTF-8 UTF-16 UTF-16 (Big-Endian) UTF-16 (Little-Endian) UTF-32 UTF-32
(Big-Endian) UTF-32 (Little-Endian) windows-1250 (Win East European)
windows-1251 (WinCyrillic) windows-1252 (WinLatin-1) windows-1253 (WinGreek)
windows-1254 (Win Turkish) windows-1255 (Win Hebrew) windows-1256 (Win Arabic)
windows-1257 (Win Baltic) windows-1257 (Win Vietnamese)
Enter URL as data source
 
 


STEP 2: CHOOSE INPUT OPTIONS (OPTIONAL)

--------------------------------------------------------------------------------

Input Options First row is column names   
Limit # of lines: Skip # of Lines
Field Separator: Auto Detect , ; : Bar-| Tab Caret-^ Space

Replace Accents/Diacriticals

Treat all Quoting Character as data

Input CSV Quoting Character is Apostrophe

CSV contains backslash escaping like \n, \t, and \,


STEP 3: CHOOSE OUTPUT OPTIONS (OPTIONAL)

--------------------------------------------------------------------------------

Output Options
Display which field positions? (Comma separated list where 1 is 1st field,
2=2nd,... i.e. 2,1,3,4)

 


Sort CSV   Ignore Case  Field #TypeDirection First By -Choose-
-Default-StringNumeric AscendingDescending Then By -Choose-
-Default-StringNumeric AscendingDescending Then By -Choose-
-Default-StringNumeric AscendingDescending





STEP 4: GENERATE OUTPUT



Result Data:

Save your result: .yaml EOL: CRLFLF

Copyright © 2013-2022 Data Design Group, Inc. All Rights Reserved  Facebook  
Twitter   Privacy Policy   Contact Us   Change Log   Terms of Use   Home