<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://sudopedia.sudocue.net/index.php?action=history&amp;feed=atom&amp;title=Sudoku_Clipboard_and_File_Formats</id>
	<title>Sudoku Clipboard and File Formats - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://sudopedia.sudocue.net/index.php?action=history&amp;feed=atom&amp;title=Sudoku_Clipboard_and_File_Formats"/>
	<link rel="alternate" type="text/html" href="http://sudopedia.sudocue.net/index.php?title=Sudoku_Clipboard_and_File_Formats&amp;action=history"/>
	<updated>2026-04-18T16:59:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>http://sudopedia.sudocue.net/index.php?title=Sudoku_Clipboard_and_File_Formats&amp;diff=461&amp;oldid=prev</id>
		<title>127.0.0.1: Created page with &quot;== Sharing Puzzles == The formats documented below are to facilitate sharing puzzles, or puzzle collections between computer programs. The sharing can either be done through t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sudopedia.sudocue.net/index.php?title=Sudoku_Clipboard_and_File_Formats&amp;diff=461&amp;oldid=prev"/>
		<updated>2021-10-26T11:18:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Sharing Puzzles == The formats documented below are to facilitate sharing puzzles, or puzzle collections between computer programs. The sharing can either be done through t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Sharing Puzzles ==&lt;br /&gt;
The formats documented below are to facilitate sharing puzzles, or puzzle collections between computer programs. The sharing can either be done through the clipboard, or a file.&lt;br /&gt;
== Simple Print Formats ==&lt;br /&gt;
Typically if you &amp;#039;&amp;#039;&amp;#039;copy&amp;#039;&amp;#039;&amp;#039; the current puzzle to the clip board and paste it into a simple text edition like Notepad you&amp;#039;ll get information like the following. Both of these were output from [[Simple Sudoku]].&lt;br /&gt;
=== Puzzle ===&lt;br /&gt;
  *-----------*&lt;br /&gt;
  |.3.|4..|...|&lt;br /&gt;
  |9.2|8.6|3.1|&lt;br /&gt;
  |...|...|.2.|&lt;br /&gt;
  |---+---+---|&lt;br /&gt;
  |8..|.6.|7..|&lt;br /&gt;
  |.6.|2.5|.9.|&lt;br /&gt;
  |..3|.4.|..8|&lt;br /&gt;
  |---+---+---|&lt;br /&gt;
  |.7.|...|...|&lt;br /&gt;
  |4.8|9.2|5.6|&lt;br /&gt;
  |...|..8|.3.|&lt;br /&gt;
  *-----------*&lt;br /&gt;
  [[Simple Sudoku]]&lt;br /&gt;
   Version 4.2n&lt;br /&gt;
&lt;br /&gt;
=== Candidate Grid ===&lt;br /&gt;
 *--------------------------------------------------------------------*&lt;br /&gt;
 | 1567   3      1567   | 4      12579  179    | 689    5678   579    |&lt;br /&gt;
 | 9      45     2      | 8      57     6      | 3      457    1      |&lt;br /&gt;
 | 1567   1458   14567  | 1357   13579  1379   | 4689   2      4579   |&lt;br /&gt;
 |----------------------+----------------------+----------------------|&lt;br /&gt;
 | 8      12459  1459   | 13     6      139    | 7      145    2345   |&lt;br /&gt;
 | 17     6      147    | 2      1378   5      | 14     9      34     |&lt;br /&gt;
 | 1257   1259   3      | 17     4      179    | 126    156    8      |&lt;br /&gt;
 |----------------------+----------------------+----------------------|&lt;br /&gt;
 | 12356  7      1569   | 1356   135    134    | 12489  148    249    |&lt;br /&gt;
 | 4      1      8      | 9      137    2      | 5      17     6      |&lt;br /&gt;
 | 1256   1259   1569   | 1567   157    8      | 1249   3      2479   |&lt;br /&gt;
 *--------------------------------------------------------------------*&lt;br /&gt;
                            [[Simple Sudoku]]&lt;br /&gt;
                             Version 4.2n&lt;br /&gt;
&lt;br /&gt;
== Clipboard and File formats ==&lt;br /&gt;
&lt;br /&gt;
Various Sudoku programs have created various formats for the clipboard and for storing puzzles to disk.&lt;br /&gt;
=== Simple Line Format For The Clipboard and Files ===&lt;br /&gt;
&lt;br /&gt;
Both for the clipboard and as one puzzle per file the following one line format is recognized.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:: If there are 81 groups of digits, the data is interpreted as a candidate grid. All formatting is ignored. &lt;br /&gt;
&lt;br /&gt;
:: If there are N digits and 81-N occurrences of another character, this character will be interpreted as representing an empty cell. When multiple characters add up to 81, the following preference list is used: &amp;#039;0&amp;#039;, &amp;#039;.&amp;#039;, &amp;#039;X&amp;#039;, &amp;#039;*&amp;#039;, &amp;#039;_&amp;#039;, &amp;#039; &amp;#039; &lt;br /&gt;
&lt;br /&gt;
Puzzle files generally don&amp;#039;t manipulate the 81 characters representing the data. However files of solution grids are typically put into line minlex form.&lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:* [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=1127&amp;amp;mforum=sudoku#1127 REPLY: A plea to Sudoku programmers -- standardized puzzle format] in &amp;#039;&amp;#039;Programmers Forum&amp;#039;&amp;#039; by &amp;#039;&amp;#039;Ruud&amp;#039;&amp;#039; Wed Aug 23, 2006 8:57 pm&lt;br /&gt;
&lt;br /&gt;
=== VBForums Contest format (*.msk;*.sol) ===&lt;br /&gt;
&lt;br /&gt;
Each row in its own line, separated by CRLF.&lt;br /&gt;
&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:* [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=1127&amp;amp;mforum=sudoku#1127 Sudoku file formats] in &amp;#039;&amp;#039;Programmers Forum&amp;#039;&amp;#039; by &amp;#039;&amp;#039;Merri&amp;#039;&amp;#039; Sun Aug 14, 2005 3:56 pm &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SadMan Software Sudoku format (*.sdk) ===&lt;br /&gt;
&lt;br /&gt;
==== Version 1 ?!? ====&lt;br /&gt;
&lt;br /&gt;
Like the VBForums format, but optionally starts with &amp;quot;[Puzzle]&amp;quot; and a CRLF. Each file contains a single puzzle. Additional information, such as the current state, pencil marks and any colours, may also be present.&lt;br /&gt;
&lt;br /&gt;
 [Puzzle]&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
 .........&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
: *        [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=1127&amp;amp;mforum=sudoku#1127 Sudoku file formats] in &amp;#039;&amp;#039;Programmers Forum&amp;#039;&amp;#039; by &amp;#039;&amp;#039;Merri&amp;#039;&amp;#039; Sun Aug 14, 2005 3:56 pm&lt;br /&gt;
: *        [https://web.archive.org/web/20111223224131/http://www.sadmansoftware.com/sudoku/faq19.htm SadMan Sudoku - SDK File Format] @ &amp;#039;&amp;#039;www.sadmansoftware.com&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Version 2 ?!? ====&lt;br /&gt;
&lt;br /&gt;
The file contains 9 lines, reach representing a row in the puzzle. Empty cells are represented by a dot. Additional information is optionally present in separate lines, starting with a hash character, followed by a single letter that identifies the type of info:&lt;br /&gt;
&lt;br /&gt;
   * A = Author&lt;br /&gt;
   * D = Description&lt;br /&gt;
   * C = Comment&lt;br /&gt;
   * B = Date published&lt;br /&gt;
   * S = Source (name of newspaper, book or website)&lt;br /&gt;
   * L = Level&lt;br /&gt;
   * U = Source URL&lt;br /&gt;
   * N = number of solutions&lt;br /&gt;
   * H = number of clues&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
&lt;br /&gt;
 #ARuud&lt;br /&gt;
 #DA random puzzle created by SudoCue&lt;br /&gt;
 #CJust start plugging in the numbers&lt;br /&gt;
 #B03-08-2006&lt;br /&gt;
 #SSudoCue&lt;br /&gt;
 #LEasy&lt;br /&gt;
 #Uhttp://www.sudocue.net/&lt;br /&gt;
 2..1.5..3&lt;br /&gt;
 .54...71.&lt;br /&gt;
 .1.2.3.8.&lt;br /&gt;
 6.28.73.4&lt;br /&gt;
 .........&lt;br /&gt;
 1.53.98.6&lt;br /&gt;
 .2.7.1.6.&lt;br /&gt;
 .81...24.&lt;br /&gt;
 7..4.2..1&lt;br /&gt;
&lt;br /&gt;
:  &amp;#039;&amp;#039;&amp;#039; External links &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:* [http://www.sudocue.net/fileformats.php SudoCue - File Formats] @ &amp;#039;&amp;#039;www.sudocue.net&amp;#039;&amp;#039;&lt;br /&gt;
:*  [https://web.archive.org/web/20111223224131/http://www.sadmansoftware.com/sudoku/faq19.htm SadMan Sudoku - SDK File Format] @ &amp;#039;&amp;#039;www.sadmansoftware.com&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Sudoku Puzzle Collection (.sdm) ===&lt;br /&gt;
&lt;br /&gt;
Basically like &amp;#039;&amp;#039;&amp;#039;*.txt&amp;#039;&amp;#039;&amp;#039; format.&lt;br /&gt;
&lt;br /&gt;
This is a very simple format. Each line contains a single puzzle. The empty cells are represented by a zero, but the program also accepts other placeholders, like a dot “.”. Line breaks in Windows or Unix style are recognized, but when my software writes these files, CrLf is always used. These files cannot be written by SudoCue. The program can only read them.&lt;br /&gt;
&lt;br /&gt;
 016400000200009000400000062070230100100000003003087040960000005000800007000006820&lt;br /&gt;
 049008605003007000000000030000400800060815020001009000010000000000600400804500390&lt;br /&gt;
 760500000000060008000000403200400800080000030005001007809000000600010000000003041&lt;br /&gt;
 000605000003020800045090270500000001062000540400000007098060450006040700000203000&lt;br /&gt;
 409000705000010000006207800200000009003704200800000004002801500000060000905000406&lt;br /&gt;
 000010030040070501002008006680000003000302000300000045200500800801040020090020000&lt;br /&gt;
 080070030260050018000000400000602000390010086000709000004000800810040052050090070&lt;br /&gt;
 000093006000800900020006100000080053006000200370050000002500040001009000700130000&lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039; External links &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:* [http://www.sudocue.net/fileformats.php SudoCue - File Formats] @ &amp;#039;&amp;#039;www.sudocue.net&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== SuDoku Solver format (*.spf) ===&lt;br /&gt;
&lt;br /&gt;
Like the &amp;#039;&amp;#039;&amp;#039;Simple Sudoku format&amp;#039;&amp;#039;&amp;#039; below, but each character is surrounded by a space and collision point of | and - is marked with a +.&lt;br /&gt;
&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
 -------+-------+------&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
 -------+-------+------&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
  . . . | . . . | . . .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:* [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=1127&amp;amp;mforum=sudoku#1127 Sudoku file formats] in &amp;#039;&amp;#039;Programmers Forum&amp;#039;&amp;#039; by &amp;#039;&amp;#039;Merri&amp;#039;&amp;#039; Sun Aug 14, 2005 3:56 pm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Simple Sudoku format (*.ss) ===&lt;br /&gt;
&lt;br /&gt;
Current format is defined by the characteristic below.&lt;br /&gt;
&lt;br /&gt;
*    Both the top and bottom lines start and end with an asterisk (&amp;quot;*&amp;quot;), followed by dashes (&amp;quot;-&amp;quot;).&lt;br /&gt;
*    Box columns separated by |,&lt;br /&gt;
*    Box rows separated by -,&lt;br /&gt;
*    Each line separated by a CRLF. &lt;br /&gt;
&lt;br /&gt;
 *-----------*&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |---+---+---|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |---+---+---|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 |...|...|...|&lt;br /&gt;
 *-----------*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Another variation that has been observed on forums is to add 9 extra spaces (and necessary dashes) to get a puzzle which is more square. Some programs will accept this file from the clipboard and some won&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
  *-----------------------*&lt;br /&gt;
  | . 3 . | 4 . . | . . . |&lt;br /&gt;
  | 9 . 2 | 8 . 6 | 3 . 1 |&lt;br /&gt;
  | . . . | . . . | . 2 . |&lt;br /&gt;
  |-------+-------+-------|&lt;br /&gt;
  | 8 . . | . 6 . | 7 . . |&lt;br /&gt;
  | . 6 . | 2 . 5 | . 9 . |&lt;br /&gt;
  | . . 3 | . 4 . | . . 8 |&lt;br /&gt;
  |-------+-------+-------|&lt;br /&gt;
  | . 7 . | . . . | . . . |&lt;br /&gt;
  | 4 . 8 | 9 . 2 | 5 . 6 |&lt;br /&gt;
  | . . . | . . 8 | . 3 . |&lt;br /&gt;
  *-----------------------*&lt;br /&gt;
        Simple Sudoku&lt;br /&gt;
   modified with extra spaces&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The old format was block columns separated by |, block rows separated by -, each line separated by a CRLF.&lt;br /&gt;
&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 -----------&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 -----------&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 ...|...|...&lt;br /&gt;
 ...|...|...&lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:*        [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=1127&amp;amp;mforum=sudoku#1127 Sudoku file formats] in &amp;#039;&amp;#039;Programmers Forum&amp;#039;&amp;#039; by &amp;#039;&amp;#039;Merri&amp;#039;&amp;#039; Sun Aug 14, 2005 3:56 pm&lt;br /&gt;
:*        [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=5110&amp;amp;mforum=sudoku#5110 Re: Sudoku file formats] by &amp;#039;&amp;#039;angusj&amp;#039;&amp;#039; Sat Aug 20, 2005 6:43 pm &lt;br /&gt;
&lt;br /&gt;
=== *.txt format ===&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;*.txt&amp;#039;&amp;#039;&amp;#039; file format is a simple one line format per puzzle.&lt;br /&gt;
* 81 ASC-II characters on a line. N digits (1-9 typically) and 81-N occurrences of another character, this character will be interpreted as representing an empty cell. When multiple characters add up to 81, the following preference list is used: &amp;#039;0&amp;#039;, &amp;#039;.&amp;#039;, &amp;#039;X&amp;#039;, &amp;#039;*&amp;#039;, &amp;#039;_&amp;#039;, &amp;#039; &amp;#039;&lt;br /&gt;
* Maybe one or more puzzles per file&lt;br /&gt;
* Multiple puzzles separated by CR-LF &lt;br /&gt;
&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:*        [https://web.archive.org/web/20111223224131/http://www.setbb.com/phpbb/viewtopic.php?p=1127&amp;amp;mforum=sudoku#1127 Sudoku file formats] in &amp;#039;&amp;#039;Programmers Forum&amp;#039;&amp;#039; by &amp;#039;&amp;#039;Merri&amp;#039;&amp;#039; Sun Aug 14, 2005 3:56 pm&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>
	</entry>
</feed>